diff options
author | saturneric <[email protected]> | 2023-12-22 16:34:46 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-22 16:34:46 +0000 |
commit | ee1a6bba20d71e710b169269565202d26794f44e (patch) | |
tree | 0f482b49dbbb0d07b9c216c12b6462e83e31673a /third_party | |
parent | fix: slove cmake configuration problem on macOS (diff) | |
download | GpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.tar.gz GpgFrontend-ee1a6bba20d71e710b169269565202d26794f44e.zip |
fix: slove compilation issue on macos
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/CMakeLists.txt | 15 |
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 |