CMake: Build "game" as a MODULE instead of as SHARED

This avoids building an unwanted libgame.dll.a when cross-compiling for Windows.
This commit is contained in:
svdijk 2015-11-05 21:09:22 +01:00
parent e467850800
commit 1950e7ff8f

View file

@ -405,7 +405,7 @@ set(Server-Header
)
# Build the game dynamic library
add_library(game SHARED ${Game-Source} ${Game-Header})
add_library(game MODULE ${Game-Source} ${Game-Header})
set_target_properties(game PROPERTIES
PREFIX ""
RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR}/Debug/baseq2