View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013694 | CMake | CMake | public | 2012-11-16 19:03 | 2016-06-10 14:31 | ||||
Reporter | Jevin Sweval | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | Apple | OS | Mac OS X | OS Version | 10.8.2 | ||||
Product Version | CMake 2.8.10.1 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013694: CMAKE_OSX_SYSROOT isn't quoted, breaking builds when the SDK path contains a space | ||||||||
Description | CMAKE_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 Reproduce | 1) 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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
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. |
Notes |
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 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |