summaryrefslogtreecommitdiff
path: root/src/lua
diff options
context:
space:
mode:
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>2012-03-30 23:51:59 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-31 01:31:17 +0300
commit1518b8f7538aad3b64a2a8a4ddf285fd22469b94 (patch)
tree7ffadd42a94c34fcc5165ab2b66e3142e9e122dc /src/lua
parent5403b1cf6d9906dac67fd9ed60b1531398e21bfb (diff)
downloadminetest-1518b8f7538aad3b64a2a8a4ddf285fd22469b94.tar.gz
minetest-1518b8f7538aad3b64a2a8a4ddf285fd22469b94.tar.bz2
minetest-1518b8f7538aad3b64a2a8a4ddf285fd22469b94.zip
cmake: lua: use COMMON_CFLAGS
This fixes LUA_USE_DLOPEN having no effect.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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
@@ -90,6 +90,11 @@ if(LUA_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.
#
if(CMAKE_COMPILER_IS_GNUCC)