diff options
author | madmaxoft <github@xoft.cz> | 2014-01-09 08:05:08 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-09 08:05:08 +0100 |
commit | 53e2ed8473b837de246009d1d4e419dc362d11ad (patch) | |
tree | 4c83f4e842b085cefcca621a25431b20a3d69005 | |
parent | Added a known working favicon. (diff) | |
download | cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar.gz cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar.bz2 cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar.lz cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar.xz cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.tar.zst cuberite-53e2ed8473b837de246009d1d4e419dc362d11ad.zip |
-rw-r--r-- | lib/lua/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index b4b5b5f1d..ff5dc927c 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -25,6 +25,15 @@ else() add_library(lua ${SOURCE}) endif() +# Tell Lua what dynamic loader to use (for LuaRocks): +if (UNIX) + if (APPLE) + add_definitions(-DLUA_USE_MACOSX) + else() + add_definitions(-DLUA_USE_LINUX) + endif () +endif() + if (UNIX) target_link_libraries(lua m ${DYNAMIC_LOADER}) endif() |