From: Jonathan Neuschäfer Date: Fri, 30 Mar 2012 21:51:59 +0000 (+0200) Subject: cmake: lua: use COMMON_CFLAGS X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=1518b8f7538aad3b64a2a8a4ddf285fd22469b94;p=zefram%2Fminetest%2Fminetest_engine.git cmake: lua: use COMMON_CFLAGS This fixes LUA_USE_DLOPEN having no effect. --- diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index 56c70d28..f2f8b976 100644 --- a/src/lua/CMakeLists.txt +++ b/src/lua/CMakeLists.txt @@ -89,6 +89,11 @@ if(LUA_ANSI) set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI") endif(LUA_ANSI) +# +# COMMON_CFLAGS has no effect without this line +# +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_CFLAGS}") + # # standard flags to use for each build type. #