From 34cb7ee4dba4d78f771a456a499566a68b503878 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Wed, 1 Jan 2020 14:48:20 +0100 Subject: [PATCH] Fix Cmake issue when targeting Windows from Conan. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19cd267..7f15e28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,9 @@ if (WINDOWS) target_link_libraries(CreatureLibCore -static -static-libgcc -static-libstdc++) target_link_libraries(CreatureLibLibrary -static -static-libgcc -static-libstdc++) target_link_libraries(CreatureLibBattling -static -static-libgcc -static-libstdc++) - target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++) + if (NOT DEFINED CONAN_EXPORTED) + target_link_libraries(CreatureLibTests -static -static-libgcc -static-libstdc++) + endif () endif (WINDOWS) if (NOT DEFINED CONAN_EXPORTED)