MantisBT - CMake
View Issue Details
0015320CMakeCMakepublic2014-12-19 10:072016-06-10 14:31
Stephen Kelly 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
0015320: Xcode with space in path can not be used to run CMake

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.

No tags attached.
related to 0013694closed Kitware Robot CMAKE_OSX_SYSROOT isn't quoted, breaking builds when the SDK path contains a space 
Issue History
2014-12-19 10:07Stephen KellyNew Issue
2014-12-19 10:26Brad KingNote Added: 0037501
2014-12-31 18:09Jevin SwevalNote Added: 0037539
2015-01-01 06:39Stephen KellyNote Added: 0037540
2015-01-01 06:41Stephen KellyRelationship addedrelated to 0013694
2016-06-10 14:29Kitware RobotNote Added: 0042693
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0037501)
Brad King   
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   
2014-12-31 18:09   
I think this may be related to 13694 (submitted by myself).
(0037540)
Stephen Kelly   
2015-01-01 06:39   
Jevin, you're right, thanks!
(0042693)
Kitware Robot   
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.