View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015320CMakeCMakepublic2014-12-19 10:072016-06-10 14:31
ReporterStephen Kelly 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0015320: Xcode with space in path can not be used to run CMake
Description
CMake fails while trying to test the C compiler.

Although cmGlobalGenerator::Build runs '/usr/bin/make', somehow it gets transformed into an improperly quoted "/Applications/Xcode 2.app/Contents/Developer/usr/bin/make", which then fails:

  Run Build Command:"/usr/bin/make" "cmTryCompileExec4267961401/fast"

  /Applications/Xcode 2.app/Contents/Developer/usr/bin/make -f
  CMakeFiles/cmTryCompileExec4267961401.dir/build.make
  CMakeFiles/cmTryCompileExec4267961401.dir/build

  make: /Applications/Xcode: No such file or directory

  make: *** [cmTryCompileExec4267961401/fast] Error 1

  
I don't know how the command to execute is transformed. It is still '/usr/bin/make' when passed to cmsysProcess_SetCommand in cmSystemTools::RunSingleCommand.

TagsNo tags attached.
Attached Files

 Relationships
related to 0013694closedKitware Robot CMAKE_OSX_SYSROOT isn't quoted, breaking builds when the SDK path contains a space 

  Notes
(0037501)
Brad King (manager)
2014-12-19 10:26

When the Makefile invokes the nested make it uses $(MAKE) which is provided by the make tool. In this case /usr/bin/make is a stub that exec-s the make that comes with Xcode.

We could try generating a quoted "$(MAKE)" but I do not know what other effects that might have.
(0037539)
Jevin Sweval (reporter)
2014-12-31 18:09

I think this may be related to 13694 (submitted by myself).
(0037540)
Stephen Kelly (developer)
2015-01-01 06:39

Jevin, you're right, thanks!
(0042693)
Kitware Robot (administrator)
2016-06-10 14:29

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
2014-12-19 10:07 Stephen Kelly New Issue
2014-12-19 10:26 Brad King Note Added: 0037501
2014-12-31 18:09 Jevin Sweval Note Added: 0037539
2015-01-01 06:39 Stephen Kelly Note Added: 0037540
2015-01-01 06:41 Stephen Kelly Relationship added related to 0013694
2016-06-10 14:29 Kitware Robot Note Added: 0042693
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team