[Cmake] EXEC_PROGRAM - bug, "feature", or my bad? Mac OS X 10.3 / BSD

paul. poppenhe at umich.edu
Tue Jun 22 12:42:21 EDT 2004


cmake 2.0.1

my work partner and I figured it's that it is because the path is both 
quoted and \ escaped.
we also tried it on an old version of linux on a server we have access 
to, and that fails on cd "path\ has/escaped\ and\ quoted/title"

so i guess that makes it a bug in EXEC_PROGRAM?

- paul

On Jun 22, 2004, at 12:24 PM, William A. Hoffman wrote:

> What version of cmake are you using?
>
> I just tried the following on OS X, and windows, and
> it worked:
>
> EXEC_PROGRAM(pwd ${PROJECT_BINARY_DIR} OUT)
> MESSAGE("${OUT}")
>
> I tried with spaces in the path.
>
> -Bill
>
> At 11:23 AM 6/22/2004, paul. wrote:
>> hello,
>>
>> When trying to invoke an external makefile with the command:
>> EXEC_PROGRAM(make ${PROJECT_SOURCE_DIR}/RenderSystems/GL/src/nvparse/)
>> cmake executes:
>> -- Check for working C compiler: gcc -- works
>> -- Check for working CXX compiler: c++ -- works
>> running cd "/Users/crescent/Documents/My\
>> Documents/Download/-Developer/Ogre/ogreCmake/RenderSystems/GL/src/ 
>> nvparse/" && make 2>&1
>> sh: line 1: cd: /Users/crescent/Documents/My\
>> Documents/Download/-Developer/Ogre/ogreCmake/RenderSystems/GL/src/ 
>> nvparse/: No such file or directory
>> -- Configuring done
>> -- Generating done
>>
>> The quotes are what is killing it:
>> % cd "/Users/crescent/Documents/My\
>> Documents/Download/-Developer/Ogre/ogreCmake/RenderSystems/GL/src/ 
>> nvparse/"
>> tcsh: /Users/crescent/Documents/My\
>> Documents/Download/-Developer/Ogre/ogreCmake/RenderSystems/GL/src/ 
>> nvparse/: No such file or directory.
>>
>> but if I:
>> % cd /Users/crescent/Documents/My\
>> Documents/Download/-Developer/Ogre/ogreCmake/RenderSystems/GL/src/ 
>> nvparse/
>> %
>>
>> weird, i know.
>>
>> I'm using Mac OS X, which uses the BSD cd command. I'm not entirely
>> positive, but that might be the issue at hand.
>>
>> Anyone know how to work around this? (other than editing the generated
>> makefile :P)
>>
>>
>> - paul
>>
>> _______________________________________________
>> Cmake mailing list
>> Cmake at www.cmake.org
>> http://www.cmake.org/mailman/listinfo/cmake
>



More information about the Cmake mailing list