diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d42aba93d..f986a39af2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ # CMake 3.8 required for 17 to be a valid value for CXX_STANDARD cmake_minimum_required(VERSION 3.8) -cmake_policy(SET CMP0092 NEW) +if (${CMAKE_VERSION} VERSION_GREATER_EQUAL 3.15) + cmake_policy(SET CMP0092 NEW) +endif () list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") include(DownloadExternals)