[cmake-developers] [CMake 0015320]: Xcode with space in path can not be used to run CMake

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 19 10:07:54 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15320 
====================================================================== 
Reported By:                Stephen Kelly
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15320
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-19 16:07 CET
Last Modified:              2014-12-19 16:07 CET
====================================================================== 
Summary:                    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.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-12-19 16:07 Stephen Kelly  New Issue                                    
======================================================================



More information about the cmake-developers mailing list