|
@@ -5,6 +5,9 @@
|
|
|
CMakeFindFrameworks
|
|
CMakeFindFrameworks
|
|
|
-------------------
|
|
-------------------
|
|
|
|
|
|
|
|
|
|
+.. deprecated:: 3.31
|
|
|
|
|
+ This module does nothing, unless policy :policy:`CMP0173` is set to ``OLD``.
|
|
|
|
|
+
|
|
|
helper module to find OSX frameworks
|
|
helper module to find OSX frameworks
|
|
|
|
|
|
|
|
This module reads hints about search locations from variables::
|
|
This module reads hints about search locations from variables::
|
|
@@ -12,6 +15,25 @@ This module reads hints about search locations from variables::
|
|
|
CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS - Extra directories
|
|
CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS - Extra directories
|
|
|
#]=======================================================================]
|
|
#]=======================================================================]
|
|
|
|
|
|
|
|
|
|
+cmake_policy(GET CMP0173 _cmp0173)
|
|
|
|
|
+if(_cmp0173 STREQUAL "NEW")
|
|
|
|
|
+ message(FATAL_ERROR
|
|
|
|
|
+ "CMakeFindFrameworks.cmake is not maintained and lacks support for more "
|
|
|
|
|
+ "recent framework handling. It will be removed in a future version of "
|
|
|
|
|
+ "CMake. Update the code to use find_library() instead. "
|
|
|
|
|
+ "Use of this module is now an error according to policy CMP0173."
|
|
|
|
|
+ )
|
|
|
|
|
+elseif(_cmp0173 STREQUAL "")
|
|
|
|
|
+ # CMake will have already emitted the standard policy warning for the point
|
|
|
|
|
+ # of inclusion. We only need to add the context-specific info here.
|
|
|
|
|
+ message(AUTHOR_WARNING
|
|
|
|
|
+ "CMakeFindFrameworks.cmake is not maintained and lacks support for more "
|
|
|
|
|
+ "recent framework handling. It will be removed in a future version of "
|
|
|
|
|
+ "CMake. Update the code to use find_library() instead."
|
|
|
|
|
+ )
|
|
|
|
|
+endif ()
|
|
|
|
|
+unset(_cmp0173)
|
|
|
|
|
+
|
|
|
if(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
|
|
if(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
|
|
|
set(CMAKE_FIND_FRAMEWORKS_INCLUDED 1)
|
|
set(CMAKE_FIND_FRAMEWORKS_INCLUDED 1)
|
|
|
macro(CMAKE_FIND_FRAMEWORKS fwk)
|
|
macro(CMAKE_FIND_FRAMEWORKS fwk)
|