[CMake] Quoting and Escapes

Dr. Christian Verbeek verbeek at servicerobotics.eu
Mon Oct 13 09:20:22 EDT 2014


Am 10.10.14 um 12:29 schrieb Nils Gladitz:
> On 10/10/2014 12:24 PM, Dr. Christian Verbeek wrote:
>> Am 10.10.14 um 12:07 schrieb Nils Gladitz:
>>> On 10/10/2014 11:48 AM, Dr. Christian Verbeek wrote:
>>>
>>>> INCLUDE( "C:/Program Files (x86)/somepath" )
>>>> ->  include could not find load file: somepath
>>>
>>> This one should work as-is.
>>> Is "somepath" an existing regular CMake script (text file)?
>>>
>>> Nils
>>>
>> The whole string is
>> C:/Program Files 
>> (x86)/Didactic/RobotinoView3/api/cmake/unit_plugin.cmake
>> and Yes unit_plugin.cmake is existing and regular.
>> The string gets truncated to /cmake/unit_plugin.cmake
>>
>> So it's definitely not working. I checked it more than twice.
>
> Are there any other errors in context?
>
> CMake reports that it can not find a module also when there is some 
> error in that file.
>
> The path itself should not be the issue.
>
> CMake itself uses absolute paths to modules in it's own module 
> directory (which on 64 bit windows also resides in "C:/Program Files 
> (x86)" per default).
>
> Nils
>
You made a point Nils. The error occured within the included cmake file. 
The path was not the problem. Thanks for pointing me into the right 
direction.

Christian



More information about the CMake mailing list