[cmake-developers] [CMake 0013893]: CMAKE_OSX_SYSROOT overwritten to "/"

Mantis Bug Tracker mantis at public.kitware.com
Tue Feb 5 05:59:34 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13893 
====================================================================== 
Reported By:                gnzlbg
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13893
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   urgent
Status:                     new
====================================================================== 
Date Submitted:             2013-02-05 05:59 EST
Last Modified:              2013-02-05 05:59 EST
====================================================================== 
Summary:                    CMAKE_OSX_SYSROOT overwritten to "/"
Description: 
CMAKE_OSX_SYSROOT is overwritten to "/" at some point.

Steps to Reproduce: 
When trying to configure Paraview 3.98.0 in Mac OS X 10.8.2 cmake fails. The
following minimal example shows the issue. 

Step 1) Execute:

cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 
-DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

cmake complains instantaneously that the deployment target 10.7 and the SDK
Version 10.8 do not match. Everything fine. 

Step 2) Now execute: 

cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8 
-DCMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

Configure starts and at some point:

- Checking support for C++ explicit template instantiation
CMake Error at
/usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/Platform/Darwin.cmake:190
(message):
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' 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):
 
/usr/local/Cellar/cmake/2.8.10.1/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36
(include)
  CMakeLists.txt:2 (PROJECT)


CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Configuring incomplete, errors occurred!

Somehow CMAKE_OSX_SYSROOT has been overwritten.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-02-05 05:59 gnzlbg         New Issue                                    
======================================================================




More information about the cmake-developers mailing list