From 942aa9560e7bb42f0b716211519669a5ed45dfe4 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 19 Sep 2010 17:39:09 +0000 Subject: [PATCH] [MSVC] Don't pass gcc specific options to msvc svn path=/branches/cmake-bringup/; revision=48818 --- lib/inflib/CMakeLists.txt | 2 ++ lib/newinflib/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/inflib/CMakeLists.txt b/lib/inflib/CMakeLists.txt index 390c81b4068..e48cf0809a7 100644 --- a/lib/inflib/CMakeLists.txt +++ b/lib/inflib/CMakeLists.txt @@ -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() diff --git a/lib/newinflib/CMakeLists.txt b/lib/newinflib/CMakeLists.txt index 0b1a0b5aa2b..0a2de69a1e5 100644 --- a/lib/newinflib/CMakeLists.txt +++ b/lib/newinflib/CMakeLists.txt @@ -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)