Hello all,<div><br></div><div>I have a problem on a mac os x server where I want to compile a simple code with cmake. The cmake process fails because it cannot compile a test file. </div><div>The output file shows some bizarre error. Apparently it cannot find the make command. The problem lies, I think, in the fact that the make executable is in a directory with spaces, so commands may need to escape the space.</div>
<div>Could anyone please shed a light on this issue? I have no idea how to solve this issue, specially because I am not the administrator of the server, so I cannot change where cmake is (I do not have permission to do a soft link to a non-space path either).</div>
<div><br></div><div>Thanks a lot!</div><div><br></div><div>Here is the output:</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(34, 34, 34); ">$ cmake ../src/<br>
-- The C compiler identification is GNU<br>-- The CXX compiler identification is GNU<br>2010-03-17 19:26:04.519 sw_vers[93927:10b] CFPreferences: user home directory at /Volumes/Server\ HD/Users/maltuve<br>is unavailable. User domains will be volatile.<br>
-- Checking whether C compiler has -isysroot<br>-- Checking whether C compiler has -isysroot - yes<br>-- Check for working C compiler: /Volumes/Server HD/Volumes/Server HD/usr/bin/gcc<br>2010-03-17 19:26:04.561 sw_vers[93936:10b] CFPreferences: user home directory at /Volumes/Server\ HD/Users/maltuve<br>
is unavailable. User domains will be volatile.<br>-- Check for working C compiler: /Volumes/Server HD/Volumes/Server HD/usr/bin/gcc -- broken<br>CMake Error at /Volumes/Server HD/opt/local/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE):<br>
The C compiler "/Volumes/Server HD/Volumes/Server HD/usr/bin/gcc" is not<br> able to compile a simple test program.<br><br> It fails with the following output:<br><br> Change Dir: /Volumes/Server HD/Users/maltuve/code/HSMM/bin/CMakeFiles/CMakeTmp<br>
<br><br><br> Run Build Command:/Volumes/Server\ HD/Volumes/Server\ HD/usr/bin/make<br> "cmTryCompileExec/fast"<br><br> /Volumes/Server HD/Volumes/Server HD/usr/bin/make -f<br> CMakeFiles/cmTryCompileExec.dir/build.make<br>
CMakeFiles/cmTryCompileExec.dir/build<br><br> make: /Volumes/Server: Command not found<br><br> make: *** [cmTryCompileExec/fast] Error 127<br><br><br><br><br><br> CMake will not be able to correctly generate this project.<br>
Call Stack (most recent call first):<br> CMakeLists.txt:3 (PROJECT)<br><br><br>-- Configuring incomplete, errors occurred!</span></div>