List:Commits« Previous MessageNext Message »
From:Vladislav Vaintroub Date:February 4 2011 2:12pm
Subject:RE: review of bug#42969
View as plain text  

> -----Original Message-----
> From: Guilhem Bichot [mailto:guilhem.bichot@stripped]
> Sent: Freitag, 4. Februar 2011 14:53
> To: Vladislav Vaintroub
> Cc: 'Joerg Bruehe'; 'commits'
> Subject: Re: review of bug#42969
> 
> Vladislav Vaintroub a écrit, Le 04.02.2011 14:42:
> >
> >> -----Original Message-----
> >> From: Joerg Bruehe [mailto:joerg.bruehe@stripped]
> >> Sent: Freitag, 4. Februar 2011 12:23
> >> To: Guilhem Bichot
> >> Cc: commits
> >> Subject: Re: review of bug#42969
> >>
> >> Hello Guilhem,
> >
> >
> >> Probably, that is the result of "@ONLY":
> >> For most of cmake's variables, simply using them "${CMAKE_SYSTEM}" is
> >> not enough, you first need the "SET" line:
> >>    SET(CMAKE_SYSTEM "@CMAKE_SYSTEM@")
> >
> > Joerg, Guilhem.
> >
> > Maybe it makes things a bit cleared with my explanation, I'll try ..
> 
> Thanks Wlad! Yes it makes things clearer. If I understood correctly,
> @variable is known by cmake when processing CONFIGURE_FILE, and is
> substituted (like @ works in autoconf), and $variable is known by cmake
> when working as a script.

CONFIGURE_FILE()  can substitute both ${var } and @var@, however 
${var} substitution  is not always desired, one would have to this care of quoting
If variable is replaced etc.  So  it is pretty  common to use @ONLY parameter.
 In this case  ${var}  like stuff  is left as is, and  @var@  is replaced.

Btw, 

shell>cmake --help-command configure_file

shows  a reasonable doc on this topic.
 
Wlad.



Thread
review of bug#42969Guilhem Bichot4 Feb
  • Re: review of bug#42969Joerg Bruehe4 Feb
    • RE: review of bug#42969Vladislav Vaintroub4 Feb
      • Re: review of bug#42969Guilhem Bichot4 Feb
        • RE: review of bug#42969Vladislav Vaintroub4 Feb
    • Re: review of bug#42969Guilhem Bichot4 Feb