[CMake] Protecting spaces
Daniel
daniel at connect2.com
Fri Oct 5 23:47:52 EDT 2007
Guenther.Stangassinger at elektrobit.com wrote:
> Hi cmake-team,
> i have a question.
> in my cmake file i have the following line:
> SET(CMAKE_CXX_COMPILER "C:/Program Files/Microsoft/ Visual Studio
> 8/VC/ce/bin/x86_arm/cl.exe")
>
> When i apply nmake afterwards i get this error:
> Der Befehl "C:\Program" ist entweder falsch geschrieben oder
> konnte nicht gefunden werden.
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
> 8\VC\ce\bin\x86_arm\cl.exe' : return code '0x1'
Try this:
SET(CMAKE_CXX_COMPILER "\"C:/Program Files/Microsoft/ Visual Studio
8/VC/ce/bin/x86_arm/cl.exe\"")
--Daniel
More information about the CMake
mailing list