[build] Guard policy setting for CMake versions below 3.24 (#5612)

This commit is contained in:
Tyler Veness
2023-09-07 09:58:22 -07:00
committed by GitHub
parent 1a6df6fec6
commit e9f612f581

View File

@@ -16,7 +16,9 @@ project(allwpilib)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
# Make timestamps of extracted files from FetchContent the time of extraction
cmake_policy(SET CMP0135 NEW)
if (POLICY CMP0135)
cmake_policy(SET CMP0135 NEW)
endif()
message(STATUS "Platform version: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")