From 1518b8f7538aad3b64a2a8a4ddf285fd22469b94 Mon Sep 17 00:00:00 2001 From: Jonathan Neuschäfer Date: Fri, 30 Mar 2012 23:51:59 +0200 Subject: cmake: lua: use COMMON_CFLAGS This fixes LUA_USE_DLOPEN having no effect. --- src/lua/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt index 56c70d280..f2f8b9768 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. # -- cgit v1.2.3