diff --git a/lib/lua/CMakeLists.txt b/lib/lua/CMakeLists.txt index 6ffe3259..ed1627a6 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)