diff --git a/CMakeLists.txt b/CMakeLists.txt index a6ff3a8..2351fb3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,11 +6,6 @@ cmake_minimum_required(VERSION 3.19.1 FATAL_ERROR) set(BUILD_MAC FALSE) set(BUILD_WIN FALSE) -#----------------------------------------------------- - -# suppress ZERO_CHECK project -set(CMAKE_SUPPRESS_REGENERATION true) - #----------------------------------------------------- # still building Win using Cmake @@ -26,6 +21,9 @@ if (BUILD_WIN) #----------------------------------------------------- + # suppress ZERO_CHECK project + set(CMAKE_SUPPRESS_REGENERATION true) + # use clang-cl on Win set(CMAKE_CXX_COMPILER "clang-cl") @@ -84,6 +82,9 @@ if (BUILD_MAC) #----------------------------------------------------- + # suppress ZERO_CHECK project + set(CMAKE_SUPPRESS_REGENERATION true) + # CMAKE_OSX_DEPLOYMENT_TARGET must be set as a CACHE variable, or it will be stripped set(CMAKE_OSX_DEPLOYMENT_TARGET "13.0" CACHE STRING "Minimum macOS") set(CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE STRING "Architecture macOS")