made LUA shared unless STATIC_LUA is set

master
Tycho Bickerstaff 2013-12-20 15:29:34 +00:00
parent be77ecf19d
commit 18b99c7eff
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,10 @@ file(GLOB SOURCE
"src/*.c" "src/*.c"
) )
if(${STATIC_LUA})
add_library(lua ${SOURCE}) add_library(lua ${SOURCE})
else()
add_library(lua SHARED ${SOURCE})
endif()
target_link_libraries(lua m) target_link_libraries(lua m)