Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit 5513d5b

Browse files
committed
Added missin definition for windows dll build
1 parent 9c4196c commit 5513d5b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ if ( WIN32 AND NOT CYGWIN )
4444
# Windows systems
4545
option ( LUA_WIN "Windows specific build." ON )
4646
option ( LUA_BUILD_WLUA "Build wLua interpretter without console output." ON )
47-
option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ON )
47+
option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ${BUILD_SHARED_LIBS} )
48+
if ( LUA_BUILD_AS_DLL )
49+
add_definitions ( -DLUA_BUILD_AS_DLL )
50+
endif ()
51+
4852
# Paths (Double escapes needed)
4953
set ( LUA_DIRSEP "\\\\" )
5054
string ( REPLACE " /" ${LUA_DIRSEP} LUA_DIR "${LUA_DIR}" )

0 commit comments

Comments
 (0)