diff options
author | Peter Drahoš <drahosp@gmail.com> | 2012-09-28 14:14:56 +0200 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2012-09-28 14:14:56 +0200 |
commit | d02c3859f8c3888645875b35ba4defb7c1814ef7 (patch) | |
tree | d3ef73987154803c216a2e28f6c670e181435db2 | |
parent | 8863e1832b53d9fa4cb7cfa22e5b1f5575a28a2e (diff) | |
download | lua-static.tar.gz |
Use cmake settings to set LUA_BUILD_AS_DLL automaticallystatic
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ab4a128..ddc6154 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ if ( WIN32 AND NOT CYGWIN ) # Windows systems option ( LUA_WIN "Windows specific build." ON ) option ( LUA_BUILD_WLUA "Build wLua interpretter without console output." ON ) - option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ON ) + option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ${BUILD_SHARED_LIBS} ) if ( LUA_BUILD_AS_DLL ) add_definitions ( -DLUA_BUILD_AS_DLL ) endif () |