Author: tkreuzer
Date: Sun Sep 19 17:39:09 2010
New Revision: 48818
URL:
http://svn.reactos.org/svn/reactos?rev=48818&view=rev
Log:
[MSVC]
Don't pass gcc specific options to msvc
Modified:
branches/cmake-bringup/lib/inflib/CMakeLists.txt
branches/cmake-bringup/lib/newinflib/CMakeLists.txt
Modified: branches/cmake-bringup/lib/inflib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/inflib/CMakeL…
==============================================================================
--- branches/cmake-bringup/lib/inflib/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/inflib/CMakeLists.txt [iso-8859-1] Sun Sep 19 17:39:09
2010
@@ -12,7 +12,9 @@
file(GLOB_RECURSE SOURCE "infhost*.c")
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
+if(NOT MSVC)
add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes)
+endif()
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
endif()
Modified: branches/cmake-bringup/lib/newinflib/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/branches/cmake-bringup/lib/newinflib/CMa…
==============================================================================
--- branches/cmake-bringup/lib/newinflib/CMakeLists.txt [iso-8859-1] (original)
+++ branches/cmake-bringup/lib/newinflib/CMakeLists.txt [iso-8859-1] Sun Sep 19 17:39:09
2010
@@ -12,7 +12,9 @@
file(GLOB_RECURSE SOURCE "infhost*.c")
add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST
-DUSE_HOST_WCSFUNCS)
+if(NOT MSVC)
add_definitions(-Wpointer-arith -Wwrite-strings)
+endif()
add_library(newinflibhost ${GLOBAL_FILES} ${SOURCE})
target_link_libraries(newinflibhost unicode)