BUG: fix for 6710 CMAKE_OSX_SYSROOT should be a PATH

This commit is contained in:
Bill Hoffman 2008-08-19 14:23:38 -04:00
parent 1d57093baf
commit 736da84b4f
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ IF(_CMAKE_OSX_SDKS)
IF(NOT "$ENV{CMAKE_OSX_SYSROOT}" STREQUAL "")
SET(_CMAKE_OSX_SDKS "$ENV{CMAKE_OSX_SYSROOT}")
ENDIF(NOT "$ENV{CMAKE_OSX_SYSROOT}" STREQUAL "")
SET(CMAKE_OSX_SYSROOT ${_CMAKE_OSX_SDKS} CACHE STRING
SET(CMAKE_OSX_SYSROOT ${_CMAKE_OSX_SDKS} CACHE PATH
"isysroot used for universal binary support")
# set _CMAKE_OSX_MACHINE to umame -m
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)