Skip to content

Commit e4ee666

Browse files
committed
cmake: make sure the dll game is built as module, not as static library
Fixup for #1555
1 parent d76ea58 commit e4ee666

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

cmake/DaemonGame.cmake

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,14 @@ daemon_write_buildinfo("Game")
109109
function(buildGameModule module_slug)
110110
set(module_target "${GAMEMODULE_NAME}-${module_slug}")
111111

112-
set(module_target_args "${module_target}" ${PCH_FILE} ${GAMEMODULE_FILES} ${SHAREDLIST_${GAMEMODULE_NAME}} ${SHAREDLIST} ${BUILDINFOLIST} ${COMMONLIST})
112+
set(module_target_args ${PCH_FILE} ${GAMEMODULE_FILES} ${SHAREDLIST_${GAMEMODULE_NAME}} ${SHAREDLIST} ${BUILDINFOLIST} ${COMMONLIST})
113113

114114
if (module_slug STREQUAL "native-dll")
115-
add_library(${module_target_args})
116-
set_target_properties(${module_target} PROPERTIES
117-
PREFIX ""
118-
COMPILE_DEFINITIONS "BUILD_VM_IN_PROCESS")
115+
add_library("${module_target}" MODULE ${module_target_args})
116+
set_target_properties(${module_target} PROPERTIES PREFIX "")
117+
set(GAMEMODULE_DEFINITIONS "${GAMEMODULE_DEFINITIONS};BUILD_VM_IN_PROCESS")
119118
else()
120-
add_executable(${module_target_args})
119+
add_executable("${module_target}" ${module_target_args})
121120
endif()
122121

123122
set_target_properties(${module_target} PROPERTIES

0 commit comments

Comments
 (0)