[CMake] output a string instead of a list
Alexander Neundorf
a.neundorf-work at gmx.net
Mon Jun 12 08:41:11 EDT 2006
Hi,
> Von: "Brandon J. Van Every" <bvanevery at gmail.com>
> Brandon J. Van Every wrote:
...
> You know I spoke too soon. Once I changed that, I started getting
> semicolons in new places *inside of* quoted strings. There is a general
> problem of semicolons, double quotes, and spaces in filenames beating
> each other up, as they are passed around between lists and strings and
> replacements are performed. A list of defines like the following is
> highly problematic:
>
> -DHIERARCHICAL_INSTALL -DC_USE_C_DEFAULTS -DC_INSTALL_HOME="E:/Program
> Files/Chicken" -DC_INSTALL_BIN_HOME="E:/Program Files/Chicken/bin"
> -DC_INSTALL_INCLUDE_HOME="E:/Program Files/Chicken/include"
> -DC_INSTALL_LIB_HOME="E:/Program Files/Chicken/lib" -DHAVE_DIRECT_H
> -DHAVE_GCVT -DHAVE_STDINT_H -DHAVE_WINDOWS_H -DHAVE_LOADLIBRARY
> -DHAVE_GETPROCADDRESS -DHAVE_WINSOCK2_H -DHAVE_WS2TCPIP_H
> -DC_ENABLE_PTABLES -DC_STACK_GROWS_DOWNWARD=1
>
> I'll try to ask a specific question when I've got it back down to a
> specific problem again. Until then, any general remedies?
I think instead of using double qoutes escaping spaces using "\ " is recommended. Please check whether FILE(TO_CMAKE|TO_SYSTEM ...) does this already for you.
Bye
Alex
--
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
More information about the CMake
mailing list