aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-07-29 15:57:18 +0000
committersaturneric <[email protected]>2024-07-29 15:57:18 +0000
commit1981fb261fec18fe7e5671c0b3ac5fa9d31c6c6c (patch)
tree29f5bae1f6158ad497b9a8a21f7797c92b8e9356 /src
parentfix: try to solve dependencies issues at app only build on windows (diff)
downloadGpgFrontend-1981fb261fec18fe7e5671c0b3ac5fa9d31c6c6c.tar.gz
GpgFrontend-1981fb261fec18fe7e5671c0b3ac5fa9d31c6c6c.zip
fix: avoid using in-repo third parties libraries on windows at full sdk build
Diffstat (limited to 'src')
-rw-r--r--src/core/CMakeLists.txt3
-rw-r--r--src/test/CMakeLists.txt3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 8993c230..efd43e3f 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -54,7 +54,8 @@ target_compile_definitions(gpgfrontend_core PUBLIC GF_CORE)
if(NOT APPLE)
target_link_libraries(gpgfrontend_core PUBLIC mimalloc)
- if(MINGW)
+ # use system installed libraries or install it system wide
+ if(MINGW AND NOT STABLE_BUILD_FULL_SDK)
set_target_properties(mimalloc
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"
diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index f052e7e2..79f17ac0 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -53,7 +53,8 @@ if(XCODE_BUILD)
XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY "${GPGFRONTEND_XOCDE_CODE_SIGN_IDENTITY}")
endif()
-if(MINGW)
+# use system installed libraries or install it system wide
+if(MINGW AND NOT STABLE_BUILD_FULL_SDK)
set_target_properties(gtest
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"