We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66efaaa commit b2f3ffeCopy full SHA for b2f3ffe
src/lua/CMakeLists.txt
@@ -47,10 +47,6 @@ else()
47
endif()
48
mark_as_advanced(LUA_USE_DLOPEN)
49
50
-if(DEFAULT_POSIX)
51
-else()
52
-endif()
53
-
54
if(DEFAULT_ANSI)
55
option(LUA_ANSI "Disable non-ansi features." ON)
56
else()
@@ -87,6 +83,10 @@ if(LUA_USE_DLOPEN)
87
83
endif(NOT APPLE)
88
84
endif(LUA_USE_DLOPEN)
89
85
86
+if(DEFAULT_POSIX)
+ set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_USE_POSIX")
+endif(DEFAULT_POSIX)
+
90
if(LUA_ANSI)
91
set(COMMON_CFLAGS "${COMMON_CFLAGS} -DLUA_ANSI")
92
endif(LUA_ANSI)
0 commit comments