ENH: Support object lists longer than 128K on MSVC
[cmake.git] / Modules / CMakeFindFrameworks.cmake
blob3a47eb0b1e02cff5a69a82ee439b5953b93b11a7
1 # - helper module to find OSX frameworks
3 IF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
4   SET(CMAKE_FIND_FRAMEWORKS_INCLUDED 1)
5   MACRO(CMAKE_FIND_FRAMEWORKS fwk)
6     SET(${fwk}_FRAMEWORKS)
7     IF(APPLE)
8       FOREACH(dir
9           ~/Library/Frameworks/${fwk}.framework
10           /Library/Frameworks/${fwk}.framework
11           /System/Library/Frameworks/${fwk}.framework
12           /Network/Library/Frameworks/${fwk}.framework)
13         IF(EXISTS ${dir})
14           SET(${fwk}_FRAMEWORKS ${${fwk}_FRAMEWORKS} ${dir})
15         ENDIF(EXISTS ${dir})
16       ENDFOREACH(dir)
17     ENDIF(APPLE)
18   ENDMACRO(CMAKE_FIND_FRAMEWORKS)
19 ENDIF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)