MantisBT - CMake
View Issue Details
0013536CMakeCMakepublic2012-09-14 06:442013-03-04 08:38
Jamie Kirkpatrick 
Brad King 
normalmajoralways
closedfixed 
Mac OS X10.8.1
CMake 2.8.9 
CMake 2.8.10CMake 2.8.10 
0013536: CMAKE_CXX_HAS_ISYSROOT and CMAKE_C_HAS_ISYSROOT not set correctly for clang++/clang
For GNU compilers these are detected by parsing the output of the help command for the compiler - clang unfortunately does not mention these flags in its output so detection fails.

This causes the CMAKE_OSX_SYSROOT variable to be ignored, resulting in compilation against the wrong SDK.
No tags attached.
has duplicate 0013537closed  CMAKE_CXX_HAS_ISYSROOT and CMAKE_C_HAS_ISYSROOT not set correctly for clang++/clang 
patch 70169ec1+0001-OS-X-Add-platform-specific-Clang-compiler-info-files.patch (2,891) 2012-09-17 15:38
https://public.kitware.com/Bug/file/4483/70169ec1%2B0001-OS-X-Add-platform-specific-Clang-compiler-info-files.patch
Issue History
2012-09-14 06:44Jamie KirkpatrickNew Issue
2012-09-14 07:43Jamie KirkpatrickNote Added: 0031029
2012-09-14 13:19David ColeRelationship addedhas duplicate 0013537
2012-09-17 15:38Brad KingAssigned To => Brad King
2012-09-17 15:38Brad KingStatusnew => assigned
2012-09-17 15:38Brad KingFile Added: 70169ec1+0001-OS-X-Add-platform-specific-Clang-compiler-info-files.patch
2012-09-17 15:38Brad KingNote Added: 0031037
2012-09-18 04:09Jamie KirkpatrickNote Added: 0031040
2012-09-18 07:50Brad KingNote Added: 0031041
2012-09-18 07:50Brad KingStatusassigned => resolved
2012-09-18 07:50Brad KingResolutionopen => fixed
2012-09-18 07:50Brad KingFixed in Version => CMake 2.8.10
2012-09-18 07:50Brad KingTarget Version => CMake 2.8.10
2013-03-04 08:38Robert MaynardNote Added: 0032451
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0031029)
Jamie Kirkpatrick   
2012-09-14 07:43   
The same is also true for CMAKE_C_OSX_DEPLOYMENT_TARGET_FLAG and CMAKE_CXX_OSX_DEPLOYMENT_TARGET_FLAG.
(0031037)
Brad King   
2012-09-17 15:38   
Please test "70169ec1+0001-OS-X-Add-platform-specific-Clang-compiler-info-files.patch". Thanks.
(0031040)
Jamie Kirkpatrick   
2012-09-18 04:09   
Patch works great.
(0031041)
Brad King   
2012-09-18 07:50   
Thanks for testing! Applied:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=011d5a4b [^]
(0032451)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.