File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,6 @@ if ( WIN32 AND NOT CYGWIN )
4040 # Windows systems
4141 option ( LUA_WIN "Windows specific build." ON )
4242 option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ${BUILD_SHARED_LIBS} )
43- if ( LUA_BUILD_AS_DLL )
44- add_definitions ( -DLUA_BUILD_AS_DLL )
45- endif ()
4643
4744 # Paths (Double escapes ne option ( LUA_BUILD_AS_DLL "Build Lua library as Dll." ON )eded)
4845 set ( LUA_DIRSEP "\\\\ " )
@@ -125,6 +122,9 @@ endif ( )
125122add_library ( liblua SHARED ${SRC_CORE} ${SRC_LIB} ${LUA_DLL_RC} ${LUA_DEF} )
126123target_link_libraries ( liblua ${LIBS} )
127124set_target_properties ( liblua PROPERTIES OUTPUT_NAME lua CLEAN_DIRECT_OUTPUT 1 )
125+ if ( LUA_BUILD_AS_DLL )
126+ set_target_properties ( liblua PROPERTIES COMPILE_DEFINITIONS LUA_BUILD_AS_DLL )
127+ endif ()
128128
129129add_executable ( lua ${SRC_LUA} src/lua.rc )
130130target_link_libraries ( lua liblua )
You can’t perform that action at this time.
0 commit comments