> Did you try protecting the $ that needs to be with \$
> Or
> set(PDOLLAR "$") and use ${PDOLLAR}
This is a pretty ugly hack, but also the one suggestion that actually
worked. Thanks!
--Nico
On Wed, Apr 10, 2013 at 8:49 PM, Eric Noulard wrote:
>
>
>
> 2013/4/10 Nico Schlömer
>>
>> Hi all,
gt; of a kludge to fix it, but it does work from my experience...
>
> Hope this helps...
> Eric
>
> > -Original Message-
> > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On
> > Behalf Of Nico Schlömer
> > Sent: Wednesday, April 10
t; Subject: [CMake] nested replacement with @@
>
> Hi all,
>
> in a ProjectContfigTemplate.cmake.in file, I'd like to have variables such as
> ${${PROJECT_NAME}_VERSION}. In ${}-syntax, the nesting is recognized
> properly, and this string would be replaced by, e.g., "2.1&q
2013/4/10 Eric Noulard
>
> 2013/4/10 Nico Schlömer
>
>
>> Replacing the above line by
>>
>> @@PROJECT_NAME@_VERSION@
>>
>> doesn't work however: The output file contains
>>
>> @Myproject_VERSION@
>>
>> i.e., only the inner variable was replaced.
>>
>> How to fix this?
>>
>
> May be it's a featur
2013/4/10 Nico Schlömer
> Hi all,
>
> in a ProjectContfigTemplate.cmake.in file, I'd like to have variables
> such as ${${PROJECT_NAME}_VERSION}. In ${}-syntax, the nesting is
> recognized properly, and this string would be replaced by, e.g.,
> "2.1".
>
> I know need to have ${}-variables in the
Hi all,
in a ProjectContfigTemplate.cmake.in file, I'd like to have variables
such as ${${PROJECT_NAME}_VERSION}. In ${}-syntax, the nesting is
recognized properly, and this string would be replaced by, e.g.,
"2.1".
I know need to have ${}-variables in the output file, so I tried to
switch to the