diff options
author | Brad King <brad.king@kitware.com> | 2013-08-07 12:21:24 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2013-08-07 12:21:24 (GMT) |
commit | fc657ef4d34f3d2c509fcb5942553bfdf7b0db5b (patch) | |
tree | 65a69e01d08d525c84a19f140962f632a50921d7 /Modules/Platform | |
parent | 726fa61b59c20ea657091fa870bf7eba77dfaa75 (diff) | |
parent | 03ab170fe0ad8fa44083dc2e2a6f662be480c9ff (diff) | |
download | CMake-fc657ef4d34f3d2c509fcb5942553bfdf7b0db5b.zip CMake-fc657ef4d34f3d2c509fcb5942553bfdf7b0db5b.tar.gz CMake-fc657ef4d34f3d2c509fcb5942553bfdf7b0db5b.tar.bz2 |
Merge topic 'osx-no-command-line-tools'
03ab170 OS X: Enable command-line build without tools in PATH
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Darwin.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake index 865cc8e..db8c7ef 100644 --- a/Modules/Platform/Darwin.cmake +++ b/Modules/Platform/Darwin.cmake @@ -326,6 +326,12 @@ set(CMAKE_SYSTEM_APPBUNDLE_PATH unset(_apps_paths) include(Platform/UnixPaths) +if(_CMAKE_OSX_SYSROOT_PATH AND EXISTS ${_CMAKE_OSX_SYSROOT_PATH}/usr/include) + list(APPEND CMAKE_SYSTEM_PREFIX_PATH ${_CMAKE_OSX_SYSROOT_PATH}/usr) + foreach(lang C CXX) + list(APPEND CMAKE_${lang}_IMPLICIT_INCLUDE_DIRECTORIES ${_CMAKE_OSX_SYSROOT_PATH}/usr/include) + endforeach() +endif() list(APPEND CMAKE_SYSTEM_PREFIX_PATH /sw # Fink /opt/local # MacPorts |