MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014695 | CMake | CMake | public | 2014-01-14 04:40 | 2014-06-02 08:38 | |||||
Reporter | Juho Frits | |||||||||
Assigned To | ||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | no change required | |||||||
Platform | Mac OS X | OS | OS X | OS Version | 10.7 | |||||
Product Version | CMake 2.8.12.1 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0014695: CMake fails with XCode 4.6 and Qt 4 with CMAKE_OSX_DEPLOYMENT_TARGET | |||||||||
Description | CMake fails to set up CMAKE_OSX_SYSROOT when using XCode 4.6 with command line tools installed. I have only 10.7 and 10.8 SDKs installed. A minimal CMakeLists.txt to reproduce the issue is: PROJECT(test) SET(CMAKE_OSX_DEPLOYMENT_TARGET 10.5) FIND_PACKAGE(Qt4 COMPONENTS QtCore) CMake outputs the following errors: CMake Warning at /opt/local/cmake/Contents/share/cmake-2.8/Modules/Platform/Darwin.cmake:145 (message): CMAKE_OSX_DEPLOYMENT_TARGET is '10.5' but the matching SDK does not exist at: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.5.sdk" Instead using SDK: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" matching the host OS X version. Call Stack (most recent call first): /opt/local/cmake/Contents/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include) CMakeLists.txt:2 (PROJECT) CMake Error at /opt/local/cmake/Contents/share/cmake-2.8/Modules/Platform/Darwin.cmake:213 (message): CMAKE_OSX_DEPLOYMENT_TARGET is '10.5' but CMAKE_OSX_SYSROOT: "" is not set to a MacOSX SDK with a recognized version. Either set CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to empty. Call Stack (most recent call first): /opt/local/cmake/Contents/share/cmake-2.8/Modules/CMakeSystemSpecificInformation.cmake:36 (include) CMakeLists.txt:2 (PROJECT) CMake Error: Internal CMake error, TryCompile configure of cmake failed CMake 2.8.9 works fine. I haven't tested with CMake 2.8.10 or 2.8.11. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | cmake-output.txt (264,823) 2014-01-16 03:54 https://public.kitware.com/Bug/file/5045/cmake-output.txt | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-01-14 04:40 | Juho Frits | New Issue | ||||||||
2014-01-14 09:01 | Brad King | Relationship added | related to 0014324 | |||||||
2014-01-14 09:05 | Brad King | Note Added: 0034934 | ||||||||
2014-01-14 09:14 | Brad King | Note Added: 0034936 | ||||||||
2014-01-16 03:54 | Juho Frits | File Added: cmake-output.txt | ||||||||
2014-01-16 04:29 | Juho Frits | Note Added: 0034948 | ||||||||
2014-01-16 09:14 | Brad King | Note Added: 0034950 | ||||||||
2014-01-16 09:32 | Juho Frits | Note Added: 0034951 | ||||||||
2014-01-16 10:24 | Brad King | Note Added: 0034953 | ||||||||
2014-01-16 10:24 | Brad King | Status | new => resolved | |||||||
2014-01-16 10:24 | Brad King | Resolution | open => no change required | |||||||
2014-06-02 08:38 | Robert Maynard | Note Added: 0036085 | ||||||||
2014-06-02 08:38 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|