diff --git a/CMakeLists.txt b/CMakeLists.txt index 040ae0e00..caa2d3b4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,8 @@ -cmake_minimum_required(VERSION 3.4 FATAL_ERROR) +cmake_minimum_required(VERSION 3.4...3.11) + +if(${CMAKE_VERSION} VERSION_LESS 3.12) + cmake_policy(VERSION ${CMAKE_VERSION}) +endif() set(VERSION_REGEX "#define CLI11_VERSION[ \t]+\"(.+)\"")