From d02c3859f8c3888645875b35ba4defb7c1814ef7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Drahos=CC=8C?= Date: Fri, 28 Sep 2012 14:14:56 +0200 Subject: Use cmake settings to set LUA_BUILD_AS_DLL automatically --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 () -- cgit v1.2.1