Glasslike_framed drawtype rework.
[oweals/minetest.git] / src / lua / CMakeLists.txt
index 56c70d2808f2bb3bdeea4446b1cb172297539767..36e27188947dd433021c1e9fac9398b30245f9c4 100644 (file)
@@ -45,6 +45,7 @@ if(DEFAULT_DLOPEN)
 else()
        option(LUA_USE_DLOPEN "Enable dlopen support." OFF)
 endif()
+mark_as_advanced(LUA_USE_DLOPEN)
 
 if(DEFAULT_POSIX)
 else()
@@ -55,6 +56,7 @@ if(DEFAULT_ANSI)
 else()
        option(LUA_ANSI "Disable non-ansi features." OFF)
 endif()
+mark_as_advanced(LUA_ANSI)
 
 #
 # Lua version
@@ -89,6 +91,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.
 #