diff --git a/CMakeLists.txt b/CMakeLists.txt index 40821906..dabb9cd4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,8 +2,10 @@ cmake_minimum_required(VERSION 3.7) project(strawberry) -cmake_policy(SET CMP0054 NEW) -if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12) +if(POLICY CMP0054) + cmake_policy(SET CMP0054 NEW) +endif() +if(POLICY CMP0074) cmake_policy(SET CMP0074 NEW) endif()