From b84db6aa2d696e7e8ef4b1b233279b219dfb821a Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 29 Aug 2021 16:03:19 +0200 Subject: [PATCH] Actually use the given libtype when building library Signed-off-by: Deukhoofd --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c985ad..f5e3abb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,7 +59,7 @@ endif () file(GLOB_RECURSE LIBRARY_SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp" "CInterface/*.hpp") -add_library(CreatureLib SHARED ${LIBRARY_SRC_FILES}) +add_library(CreatureLib ${LIBTYPE} ${LIBRARY_SRC_FILES}) target_precompile_headers(CreatureLib PUBLIC src/Precompiled.hxx) # If interprocedural optimization is available, apply it