summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to '')
-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)