diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b3ceb40b..b8369eed 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,7 +2,9 @@ cmake_minimum_required(VERSION 3.14) set(CMAKE_CXX_STANDARD 11) -cmake_policy(SET CMP0135 NEW) +if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.24) + cmake_policy(SET CMP0135 NEW) +endif() include(FetchContent) FetchContent_Declare(