[CMake] Quoting and Escapes

Dr. Christian Verbeek verbeek at servicerobotics.eu
Fri Oct 10 05:48:16 EDT 2014


Dear cmake users,

I am using cmake 3.0.2 on WIndows.

INCLUDE( C:/Program Files (x86)/somepath )
->  include called with wrong number of arguments.  include() only takes 
one file.
Ok. Because of the white spaces.

INCLUDE( "C:/Program Files (x86)/somepath" )
->  include could not find load file: somepath
Ok. Probably because of the ().

INCLUDE( "C:/Program Files \(x86\)/somepath" )
->  include could not find load file: somepath
Still the same error even though () had been escaped.

INCLUDE( C:/Program\ Files\ \(x86\)/somepath )
->  include could not find load file: somepath
Still the same error. Confusion reached it's maximum.

Does anyone know how to escape the () and also deal with the white space?

Regards
Christian

-- 
___________________________________________________________________________
REC GmbH                                   http://www.roboparts.de
Dr. Christian Verbeek                      http://www.servicerobotics.eu
Robert-Koch-Str. 2, 82152 Planegg          http://wiki.openrobotino.org
                                            http://forum.openrobotino.org
Tel:    +49 89 85689672
Fax:    +49 89 85902327
Mobile: +49 160 7056589
e-mail: verbeek at servicerobotics.eu

Geschäftsführer: Dr. Christian Verbeek
Registergericht: AG München (HRB 154463)
___________________________________________________________________________



More information about the CMake mailing list