[cmake-developers] [CMake 0014695]: CMake fails with XCode 4.6 and Qt 4 with CMAKE_OSX_DEPLOYMENT_TARGET

Mantis Bug Tracker mantis at public.kitware.com
Tue Jan 14 04:40:37 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14695 
====================================================================== 
Reported By:                Juho Frits
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14695
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-01-14 04:40 EST
Last Modified:              2014-01-14 04:40 EST
====================================================================== 
Summary:                    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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-01-14 04:40 Juho Frits     New Issue                                    
======================================================================



More information about the cmake-developers mailing list