STYLE: Nightly Version update
[cmake.git] / Modules / CMakeFindFrameworks.cmake
blobc800869bef88249bc85612dddf1d2148380cff1d
1 IF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)
2   SET(CMAKE_FIND_FRAMEWORKS_INCLUDED 1)
3   MACRO(CMAKE_FIND_FRAMEWORKS fwk)
4     SET(${fwk}_FRAMEWORKS)
5     IF(APPLE)
6       FOREACH(dir
7           ~/Library/Frameworks/${fwk}.framework
8           /Library/Frameworks/${fwk}.framework
9           /System/Library/Frameworks/${fwk}.framework
10           /Network/Library/Frameworks/${fwk}.framework)
11         IF(EXISTS ${dir})
12           SET(${fwk}_FRAMEWORKS ${${fwk}_FRAMEWORKS} ${dir})
13         ENDIF(EXISTS ${dir})
14       ENDFOREACH(dir)
15     ENDIF(APPLE)
16   ENDMACRO(CMAKE_FIND_FRAMEWORKS)
17 ENDIF(NOT CMAKE_FIND_FRAMEWORKS_INCLUDED)