CMakeFindFrameworks module should be deprecated
Its CMAKE_FIND_FRAMEWORKS
macro does not search CMAKE_FRAMEWORK_PATH
(or offer similar alternative flexibility).
Currently CMAKE_FIND_FRAMEWORKS
contains a fixed list of framework locations:
However, it's possible, in particular for package managers, that additional items may want to be inserted to this list. This is already possible in other places via CMAKE_FRAMEWORK_PATH
, but not in CMAKE_FIND_FRAMEWORKS
.
The current CMAKE_FIND_FRAMEWORK_EXTRA_LOCATIONS
is too limited. Instead of acting as a base frameworks directory that CMake can search for ${fwk}.framework
in, it only works when supplied with the full path for a specific framework, which could actually end up being used even if that framework might not even be for fwk
.
Edited by Brad King