From 53e2ed8473b837de246009d1d4e419dc362d11ad Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 9 Jan 2014 08:05:08 +0100 Subject: Specified the dynamic loader Lua should use. --- lib/lua/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/lua') 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() -- cgit v1.2.3 From 1704d0fd6bae38066d6b15e6468dadc058d1f703 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Fri, 10 Jan 2014 10:03:39 +0100 Subject: Using dlopen() on all platforms except WIN32. --- lib/lua/CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/lua') diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index ff5dc927c..af03f4b1a 100644 --- a/lib/lua/CMakeLists.txt +++ b/lib/lua/CMakeLists.txt @@ -27,11 +27,7 @@ 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 () + add_definitions(-DLUA_USE_DLOPEN) endif() if (UNIX) -- cgit v1.2.3