CMakeFindFrameworks: Deprecate the module subject to policy CMP0173

Fixes: #20446
This commit is contained in:
Craig Scott
2024-08-16 10:49:22 +10:00
parent 2904ce00d2
commit dd87640a22
20 changed files with 135 additions and 4 deletions

View File

@@ -81,7 +81,10 @@ if(IS_ABSOLUTE "${PYTHON_EXECUTABLE}")
endif()
endif()
include(${CMAKE_CURRENT_LIST_DIR}/CMakeFindFrameworks.cmake)
block(SCOPE_FOR POLICIES)
cmake_policy(SET CMP0173 OLD)
include(${CMAKE_CURRENT_LIST_DIR}/CMakeFindFrameworks.cmake)
endblock()
# Search for the python framework on Apple.
CMAKE_FIND_FRAMEWORKS(Python)