diff options
author | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-07-26 05:07:45 +0000 |
---|---|---|
committer | lloydh <lloydh@e775cfb5-b74b-0410-aad5-5bebe4a96390> | 2007-07-26 05:07:45 +0000 |
commit | cae73394d4500528d6a282a39990412af9c28f7e (patch) | |
tree | ba7e9750d58324221e8873d38e33da7ff559c745 /CMakeLists.txt | |
parent | 9cd38cb7702180b6f14359955293cbb6842fd899 (diff) | |
download | yajl-cae73394d4500528d6a282a39990412af9c28f7e.tar.gz |
fix all warnings under windows.
git-svn-id: http://yajl-c.googlecode.com/svn/yajl/trunk@67 e775cfb5-b74b-0410-aad5-5bebe4a96390
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a0dd50..faef0a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,9 +36,17 @@ IF (NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE "Debug") ENDIF () -SET(CMAKE_C_FLAGS "-Wall -fPIC -ansi") -SET(CMAKE_CXX_FLAGS_DEBUG "-DDEBUG -g") -SET(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -02") +SET(CMAKE_C_FLAGS "-Wall") +IF (WIN32) + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996 /wd4255 /wd4130 /wd4100 /wd4711") + SET(CMAKE_C_FLAGS_DEBUG "/D DEBUG /Od") + SET(CMAKE_C_FLAGS_RELEASE "/D NDEBUG /O2") +ELSE () + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -ansi") + SET(CMAKE_C_FLAGS_DEBUG "-DDEBUG -g") + SET(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -02") +ENDIF () + ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(test) |