From 9bc9068dcf72ebc80a6a0c7a7d62683f2e717b9e Mon Sep 17 00:00:00 2001 From: Arthur Ice Date: Wed, 16 Apr 2014 16:37:20 -0700 Subject: [PATCH] luabind now actually correctly builds with warning suppressed. --- luabind/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/luabind/CMakeLists.txt b/luabind/CMakeLists.txt index 93a02785e..3329a147c 100644 --- a/luabind/CMakeLists.txt +++ b/luabind/CMakeLists.txt @@ -21,14 +21,15 @@ SET(lb_sources ) SET(lb_headers - + ) ADD_LIBRARY(luabind ${lb_sources} ${lb_headers}) IF(UNIX) - ADD_DEFINITIONS(-fPIC -fsyntax-only) + ADD_DEFINITIONS(-fPIC) + SET_PROPERTY(SOURCE ${lb_sources} PROPERTY COMPILE_FLAGS -w) ENDIF(UNIX) SET(LIBRARY_OUTPUT_PATH ../Bin)