The recommended `FetchContent_MakeAvailable()` is introduced in CMake
3.14 which is greater than `cmake_minimum_required()`.
CMake policy will effects subdirectories.
The `cmake_minimum_required(VERSION)` command implicitly calls
`cmake_policy(VERSION)`.
Closes https://github.com/zlib-ng/zlib-ng/issues/1788
endif()
message(STATUS "Using CMake version ${CMAKE_VERSION}")
+if(POLICY CMP0169)
+ cmake_policy(SET CMP0169 OLD) # CMake 3.30: call FetchContent_Populate() with just the name of a dependency
+endif()
+
# If not specified on the command line, enable C11 as the default
# Configuration items that affect the global compiler environment standards
# should be issued before the "project" command.
-cmake_minimum_required(VERSION 3.5.1)
-
macro(configure_test_executable target)
target_include_directories(${target} PRIVATE ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR})
set_target_properties(${target} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})