Don't pass gcc specific options to msvc

svn path=/branches/cmake-bringup/; revision=48818
This commit is contained in:
Timo Kreuzer 2010-09-19 17:39:09 +00:00
parent 7330915418
commit 942aa9560e
2 changed files with 4 additions and 0 deletions

View file

@ -12,7 +12,9 @@ else()
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()

View file

@ -12,7 +12,9 @@ else()
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)