aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lua/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/CMakeLists.txt b/src/lua/CMakeLists.txt
index 36e271889..4bfe318ee 100644
--- a/src/lua/CMakeLists.txt
+++ b/src/lua/CMakeLists.txt
@@ -47,10 +47,6 @@ else()
endif()
mark_as_advanced(LUA_USE_DLOPEN)
-if(DEFAULT_POSIX)
-else()
-endif()
-
if(DEFAULT_ANSI)
option(LUA_ANSI "Disable non-ansi features." ON)
else()
@@ -87,6 +83,10 @@ if(LUA_USE_DLOPEN)
endif(NOT APPLE)
endif(LUA_USE_DLOPEN)
+if(DEFAULT_POSIX)
+ set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_POSIX")
+endif(DEFAULT_POSIX)
+
if(LUA_ANSI)
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI")
endif(LUA_ANSI)