diff --git a/Modules/ExternalProject/shared_internal_commands.cmake b/Modules/ExternalProject/shared_internal_commands.cmake index df1290ee70..070328b67e 100644 --- a/Modules/ExternalProject/shared_internal_commands.cmake +++ b/Modules/ExternalProject/shared_internal_commands.cmake @@ -1,4 +1,4 @@ -cmake_policy(VERSION 3.25) +cmake_policy(VERSION 4.1) # Determine the remote URL of the project containing the working_directory. # This will leave output_variable unset if the URL can't be determined. diff --git a/Modules/FetchContent.cmake b/Modules/FetchContent.cmake index fb9c2e5a21..9daa50e316 100644 --- a/Modules/FetchContent.cmake +++ b/Modules/FetchContent.cmake @@ -1138,7 +1138,7 @@ current working directory. # FetchContent_MakeAvailable() implementation details are excluded for # backward compatibility reasons (see just after the endblock()). block(SCOPE_FOR POLICIES) -cmake_policy(VERSION 3.29) +cmake_policy(VERSION 4.1) include(${CMAKE_CURRENT_LIST_DIR}/ExternalProject/shared_internal_commands.cmake)