From 4ad8500a3e8760f808d780feb2c87fdd55f66ff1 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Wed, 19 Nov 2014 21:01:57 -0800 Subject: [PATCH 1/2] luabind now compiles with warnings disabled for this library --- luabind/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/luabind/CMakeLists.txt b/luabind/CMakeLists.txt index 9f3288d4a..3024f3652 100644 --- a/luabind/CMakeLists.txt +++ b/luabind/CMakeLists.txt @@ -21,7 +21,7 @@ SET(lb_sources ) SET(lb_headers - + ) ADD_LIBRARY(luabind ${lb_sources} ${lb_headers}) @@ -29,6 +29,12 @@ ADD_LIBRARY(luabind ${lb_sources} ${lb_headers}) IF(UNIX) ADD_DEFINITIONS(-fPIC) + set_source_files_properties(${lb_sources} PROPERTY COMPILE_FLAGS -Wno-deprecated-declarations) + ENDIF(UNIX) +IF(MSVC) + set_source_files_properties(${lb_sources} PROPERTY COMPILE_FLAGS " /W0 " ) +ENDIF(MSVC) + SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) From fdd78e41dac5fdb422cfb52f1d143fad64038ae4 Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Wed, 19 Nov 2014 21:22:37 -0800 Subject: [PATCH 2/2] warning from library file SocketLib\Mime.cpp disabled --- common/CMakeLists.txt | 2 ++ luabind/CMakeLists.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index ac42f5e4e..01fcd6df8 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -334,7 +334,9 @@ ADD_LIBRARY(common ${common_sources} ${common_headers}) IF(UNIX) ADD_DEFINITIONS(-fPIC) + SET_SOURCE_FILES_PROPERTIES("SocketLib/Mime.cpp" PROPERTY COMPILE_FLAGS -Wno-unused-result) SET_SOURCE_FILES_PROPERTIES("patches/sod.cpp" "patches/sof.cpp" "patches/rof.cpp" "patches/underfoot.cpp" PROPERTIES COMPILE_FLAGS -O0) ENDIF(UNIX) + SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) diff --git a/luabind/CMakeLists.txt b/luabind/CMakeLists.txt index 3024f3652..5efdf562f 100644 --- a/luabind/CMakeLists.txt +++ b/luabind/CMakeLists.txt @@ -30,7 +30,6 @@ ADD_LIBRARY(luabind ${lb_sources} ${lb_headers}) IF(UNIX) ADD_DEFINITIONS(-fPIC) set_source_files_properties(${lb_sources} PROPERTY COMPILE_FLAGS -Wno-deprecated-declarations) - ENDIF(UNIX) IF(MSVC)