diff --git a/CMakeLists.txt b/CMakeLists.txt index 012bcb7ccd..3c5f1d8962 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")