diff --git a/CMakeLists.txt b/CMakeLists.txt index 79470ed2..f9e605d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,10 @@ set(CMAKE_BUILD_TYPE "Release") # cmake_policy(SET CMP0003 NEW) #endif() +if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) +endif() + if (MSVC) add_definitions(-DNOMINMAX) add_definitions("/EHsc") diff --git a/thirdparty/val3dity/CMakeLists.txt b/thirdparty/val3dity/CMakeLists.txt index ed8be465..f1af3aa4 100644 --- a/thirdparty/val3dity/CMakeLists.txt +++ b/thirdparty/val3dity/CMakeLists.txt @@ -6,6 +6,9 @@ endif(COMMAND cmake_policy) cmake_minimum_required (VERSION 3.16) project( val3dity ) +if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) +endif() add_definitions(-std=c++17)