[CMake] CMP0053: Unable to refer to $ENV{PROGRAMFILES(X86)}

Mario *LigH* Rohkrämer contact at ligh.de
Thu Nov 13 04:28:36 EST 2014


Thank you, I will forward this suggestion to the x265 developers.


Am 13.11.2014, 10:11 Uhr, schrieb Nils Gladitz <nilsgladitz at gmail.com>:

> On 11/13/2014 09:51 AM, Mario *LigH* Rohkrämer wrote:
>> The line
>>
>>          "$ENV{PROGRAMFILES(X86)}/Visual Leak Detector"
>>
>> causes warning CMP0053 because parentheses in identifiers are not
>> allowed. Trying to escape them to
>>
>>          "$ENV{PROGRAMFILES\(X86\)}/Visual Leak Detector"
>>
>> instead errors out: Syntax error in cmake code; unexpected cal_SYMBOL,
>> expecting } (19)
>>
>> How can this be solved? Is it possible to "quote inside quotes", or are
>> there different escapes?
>>
>
> I stumbled over the same issue earlier[1].
>
> What should work is something like
>
> 	set(MYENV "PROGRAMFILES(X86)")
>
> 	...
>
> 	"$ENV{${MYENV}}/Visual Leak Detector"
>
> Nils
>
> [1]  
> http://public.kitware.com/pipermail/cmake-developers/2014-October/023190.html
>
>
>
>


-- 

Fun and success!
Mario *LigH* Rohkrämer
mailto:contact at ligh.de
 


More information about the CMake mailing list