View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013694CMakeCMakepublic2012-11-16 19:032016-06-10 14:31
ReporterJevin Sweval 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformAppleOSMac OS XOS Version10.8.2
Product VersionCMake 2.8.10.1 
Target VersionFixed in Version 
Summary0013694: CMAKE_OSX_SYSROOT isn't quoted, breaking builds when the SDK path contains a space
DescriptionCMAKE_OSX_SYSROOT is eventually consumed by cmLocalGenerator::AddArchitectureFlags which will generate something like '-isysroot $SYSROOT'

I keep multiple versions of Xcode around in /Applications/Xcode $version.app/ so the sysroot path will contain a space.

The fix (for my case) is to wrap the sysroot path in quotes like so: '-isysroot "$SYSROOT"'

I can't imagine that this would break anything, and can only help.

I have applied a patch here https://github.com/jevinskie/cmake/commits/master [^]
Steps To Reproduce1) Rename your Xcode.app folder such that it contains a space.
2) Try to build something
3) The build fails because the sysroot path was not properly quoted.
TagsNo tags attached.
Attached Files

 Relationships
related to 0015320closedKitware Robot Xcode with space in path can not be used to run CMake 

  Notes
(0031598)
David Cole (manager)
2012-11-17 13:18

I still have 10.7.5 installed on my Mac, with Xcode 4.2.1 at "/Developer/Applications/Xcode.app".

When I apply this patch, I cannot build with the Xcode generator if I change the root to have a space in it (i.e., "/Devel Oper"), nor can I build when I change "Xcode.app" to "Xco De.app". I get errors about "unknown compiler".

So... while the patch seems appropriate, and apparently fixes things for your scenario, I don't think it's sufficient for fixing all scenarios similar to it. I think there are more places where we'll need fixes besides the one location you've patched here.
(0042151)
Kitware Robot (administrator)
2016-06-10 14:28

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2012-11-16 19:03 Jevin Sweval New Issue
2012-11-17 13:18 David Cole Note Added: 0031598
2015-01-01 06:41 Stephen Kelly Relationship added related to 0015320
2016-06-10 14:28 Kitware Robot Note Added: 0042151
2016-06-10 14:28 Kitware Robot Status new => resolved
2016-06-10 14:28 Kitware Robot Resolution open => moved
2016-06-10 14:28 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team