Re: [CMake] nested replacement with @@

2013-04-11 Thread Nico Schlömer
> 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,

Re: [CMake] nested replacement with @@

2013-04-10 Thread Clinton Stimpson
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

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Clark
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

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Noulard
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

Re: [CMake] nested replacement with @@

2013-04-10 Thread Eric Noulard
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

[CMake] nested replacement with @@

2013-04-10 Thread 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 output file, so I tried to switch to the