summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:29:34 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-20 16:29:34 +0100
commit18b99c7eff28b5cd0669d169649bfa7dd8f9f87a (patch)
treec06e07d08ef6b4a6df57d5aed3f064723de6cb0c
parentfixed lua dependency on libm (diff)
downloadcuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar.gz
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar.bz2
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar.lz
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar.xz
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.tar.zst
cuberite-18b99c7eff28b5cd0669d169649bfa7dd8f9f87a.zip
-rw-r--r--lib/lua/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt
index 6ffe3259a..ed1627a67 100644
--- a/lib/lua/CMakeLists.txt
+++ b/lib/lua/CMakeLists.txt
@@ -8,6 +8,10 @@ file(GLOB SOURCE
"src/*.c"
)
+if(${STATIC_LUA})
add_library(lua ${SOURCE})
+else()
+add_library(lua SHARED ${SOURCE})
+endif()
target_link_libraries(lua m)