diff options
author | Peter Drahoš <drahosp@gmail.com> | 2012-09-30 16:48:56 +0200 |
---|---|---|
committer | Peter Drahoš <drahosp@gmail.com> | 2012-09-30 16:48:56 +0200 |
commit | 5513d5b881caaef01d56236b4833b008081e5eed (patch) | |
tree | cc385a4f7dfb1d83a841721fb87685e6f552f05f | |
parent | 9c4196cec3c52c42a428d37ac4b5a410075f28ff (diff) | |
download | lua-5513d5b881caaef01d56236b4833b008081e5eed.tar.gz |
Added missin definition for windows dll build
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba8e7d3..12e1e35 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,11 @@ 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 () + # Paths (Double escapes needed) set ( LUA_DIRSEP "\\\\" ) string ( REPLACE " /" ${LUA_DIRSEP} LUA_DIR "${LUA_DIR}" ) |