[CMake] A bug for Code::Blocks MinGW?
Song Zhiwei
songzw at gmail.com
Fri Dec 4 20:17:31 EST 2009
Before the bug fixed, is there any way inside CMake to add "
around the filename? Use special commands?
Zhiwei
2009/12/3 Song Zhiwei <songzw at gmail.com>:
> CMake 2.8.0 on Windows
>
> 2009/12/3 John Drescher <drescherjm at gmail.com>:
>>> I use CMake to generate a Code::Blocks MinGW Makefiles for my project
>>> Module4Test. Module4Test.cbp contains lines as below:
>>>
>>> <MakeCommands>
>>> <Build command="C:/MinGW/bin/mingw32-make.exe -f
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile
>>> module4test/fast" />
>>> <CompileFile command="C:/MinGW/bin/mingw32-make.exe -f
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile
>>> "$file"" />
>>> <Clean command="C:/MinGW/bin/mingw32-make.exe -f
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile
>>> clean" />
>>> <DistClean command="C:/MinGW/bin/mingw32-make.exe -f
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile
>>> clean" />
>>> </MakeCommands>
>>>
>>> As you noticed, no " are added around C:/Documents\
>>> ..../Makefile, so the build fails.
>>>
>>> Is it a bug?
>>>
>>
>> No its actually escaped correctly for *nix but not windows.
>>
>> What version of CMake are you using?
>> John
>>
>
More information about the CMake
mailing list