summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Klontz <Joshua.Klontz@noblis.org>2013-11-29 17:04:49 -0500
committerJosh Klontz <Joshua.Klontz@noblis.org>2013-11-29 17:05:55 -0500
commit9922a580fbcb405e8ad8285a52abd7843167a1a5 (patch)
tree25550ced8bd2c9d1424dca33ff66bead5efbbc40
parentceb92f3d955faa317ce0703e788dcbdaeef81407 (diff)
downloadlua-9922a580fbcb405e8ad8285a52abd7843167a1a5.tar.gz
allow for optional static compilation by overriding BUILD_SHARED_LIBS to OFF
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b025a53..c0a83ec 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -127,7 +127,7 @@ endif ( )
## BUILD
# Create lua library
-add_library ( liblua SHARED ${SRC_CORE} ${SRC_LIB} ${LUA_DLL_RC} ${LUA_DEF} )
+add_library ( liblua ${SRC_CORE} ${SRC_LIB} ${LUA_DLL_RC} ${LUA_DEF} )
target_link_libraries ( liblua ${LIBS} )
set_target_properties ( liblua PROPERTIES OUTPUT_NAME lua CLEAN_DIRECT_OUTPUT 1 )
if ( LUA_BUILD_AS_DLL )