From: Vladislav Vaintroub Date: February 4 2011 2:12pm Subject: RE: review of bug#42969 List-Archive: http://lists.mysql.com/commits/130418 Message-Id: <013501cbc475$9baf5d50$d30e17f0$@montyprogram.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > -----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 >=20 > Vladislav Vaintroub a =E9crit, 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 .. >=20 > 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=20 ${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,=20 shell>cmake --help-command configure_file shows a reasonable doc on this topic. =20 Wlad.