From 1950e7ff8f91e75db129d877a0f2b4db4c913777 Mon Sep 17 00:00:00 2001 From: svdijk Date: Thu, 5 Nov 2015 21:09:22 +0100 Subject: [PATCH] CMake: Build "game" as a MODULE instead of as SHARED This avoids building an unwanted libgame.dll.a when cross-compiling for Windows. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 32ce8db4..1b25ec5a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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