summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-04-28 17:53:14 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-04-28 17:53:14 (GMT)
commitd4fdbeed6442d4df507d5fe4045435afc698fc96 (patch)
treeb13b5392de566b91b79ae1dfe323b03afbd1db9e /Modules/Platform/Darwin.cmake
parent9bc893eb161b66c3afb5c3547c64009336654535 (diff)
downloadCMake-d4fdbeed6442d4df507d5fe4045435afc698fc96.zip
CMake-d4fdbeed6442d4df507d5fe4045435afc698fc96.tar.gz
CMake-d4fdbeed6442d4df507d5fe4045435afc698fc96.tar.bz2
ENH: allow users to set sysroot
Diffstat (limited to 'Modules/Platform/Darwin.cmake')
-rw-r--r--Modules/Platform/Darwin.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin.cmake b/Modules/Platform/Darwin.cmake
index dfdc8eb..ecc465c 100644
--- a/Modules/Platform/Darwin.cmake
+++ b/Modules/Platform/Darwin.cmake
@@ -57,6 +57,7 @@ IF(_CMAKE_OSX_SDKS)
LIST(SORT _CMAKE_OSX_SDKS)
LIST(REVERSE _CMAKE_OSX_SDKS)
LIST(GET _CMAKE_OSX_SDKS 0 _CMAKE_OSX_SDKS)
+ SET(CMAKE_OSX_SYSROOT_DEFAULT "${_CMAKE_OSX_SDKS}")
# use the environment variable CMAKE_OSX_SYSROOT if it is set
IF(NOT "$ENV{CMAKE_OSX_SYSROOT}" STREQUAL "")
SET(_CMAKE_OSX_SDKS "$ENV{CMAKE_OSX_SYSROOT}")