From 4e79571e490587a8db323f44c42449582fc00bcc Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 2 May 2020 16:11:41 +0200 Subject: [PATCH] Fixed StaticC flag not statically linking to the correct libraries. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 97cb1fe..6a9b0cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,7 +50,8 @@ if (WINDOWS) endif (WINDOWS) if (STATICC) - SET(_LINKS ${_LINKS} -static-libgcc -static-libstdc++) + SET(_LIBRARYLINKS ${_LIBRARYLINKS} -static-libgcc -static-libstdc++) + SET(_BATTLINGLINKS ${_BATTLINGLINKS} -static-libgcc -static-libstdc++) if (NOT DEFINED CONAN_EXPORTED) SET(_TESTLINKS ${_TESTLINKS} -static-libgcc -static-libstdc++) endif ()