aboutsummaryrefslogtreecommitdiffstats
path: root/third_party
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-22 16:34:46 +0000
committersaturneric <[email protected]>2023-12-22 16:34:46 +0000
commitee1a6bba20d71e710b169269565202d26794f44e (patch)
tree0f482b49dbbb0d07b9c216c12b6462e83e31673a /third_party
parentfix: slove cmake configuration problem on macOS (diff)
downloadGpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.tar.gz
GpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.zip
fix: slove compilation issue on macos
Diffstat (limited to 'third_party')
-rw-r--r--third_party/CMakeLists.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index 79cd322b..b0ddc488 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -30,12 +30,17 @@ set(JSON_BuildTests OFF CACHE INTERNAL "")
add_subdirectory(json EXCLUDE_FROM_ALL)
add_subdirectory(spdlog EXCLUDE_FROM_ALL)
-set(MI_SECURE ON)
-if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
- # set(MI_TRACK_VALGRIND ON)
- set(MI_TRACK_ASAN ON)
+# not working at macOS
+if(NOT APPLE)
+ set(MI_SECURE ON)
+ if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+ # set(MI_TRACK_VALGRIND ON)
+ set(MI_TRACK_ASAN ON)
+ endif()
+ add_subdirectory(mimalloc EXCLUDE_FROM_ALL)
endif()
-add_subdirectory(mimalloc EXCLUDE_FROM_ALL)
+
+
set(INSTALL_GTEST OFF)
add_subdirectory(googletest EXCLUDE_FROM_ALL) \ No newline at end of file