diff options
author | Mattes D <github@xoft.cz> | 2014-01-10 17:27:43 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-01-10 17:27:43 +0100 |
commit | e213769216c2cf3ccdb5bc82a07cd0be735e8d04 (patch) | |
tree | 32767887bcfeeb7c39b398d191c9afe27c142d3e /lib | |
parent | Fixed generator adding values to ini file. (diff) | |
parent | Using dlopen() on all platforms except WIN32. (diff) | |
download | cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar.gz cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar.bz2 cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar.lz cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar.xz cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.tar.zst cuberite-e213769216c2cf3ccdb5bc82a07cd0be735e8d04.zip |
Diffstat (limited to '')
-rw-r--r-- | lib/lua/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index b4b5b5f1d..af03f4b1a 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -25,6 +25,11 @@ else() add_library(lua ${SOURCE}) endif() +# Tell Lua what dynamic loader to use (for LuaRocks): +if (UNIX) + add_definitions(-DLUA_USE_DLOPEN) +endif() + if (UNIX) target_link_libraries(lua m ${DYNAMIC_LOADER}) endif() |