We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13503ec commit 6c8db3eCopy full SHA for 6c8db3e
cmake/BuildLua.cmake
@@ -62,12 +62,11 @@ macro(build_lua LUA_VERSION)
62
# with -fPIC".
63
set(CFLAGS "${CFLAGS} -fPIC")
64
set(CFLAGS "${CFLAGS} -DLUA_USE_DLOPEN")
65
+ # `io.popen()` is not supported by default, it is enabled
66
+ # by `LUA_USE_POSIX` flag. Required by a function `random_locale()`.
67
+ set(CFLAGS "${CFLAGS} -DLUA_USE_POSIX")
68
endif()
69
- # `io.popen()` is not supported by default, it is enabled
- # by `LUA_USE_POSIX` flag. Required by a function `random_locale()`.
- set(CFLAGS "${CFLAGS} -DLUA_USE_POSIX")
70
-
71
include(ExternalProject)
72
73
set(LUA_LIBRARY ${PROJECT_BINARY_DIR}/lua-${LUA_VERSION}/source/liblua.a)
0 commit comments