[cmake-developers] compiler version variables
Rolf Eike Beer
eike at sf-mail.de
Fri Feb 24 13:15:58 EST 2012
Brad King wrote:
> On 2/24/2012 11:50 AM, Rolf Eike Beer wrote:
> > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=c28e2769482c12da53a3c01
> > ea45f9ae6cdc1de34 commit c28e2769482c12da53a3c01ea45f9ae6cdc1de34
> > Author: Rolf Eike Beer<eike at sf-mail.de>
> > AuthorDate: Fri Feb 24 17:48:02 2012 +0100
> > Commit: Rolf Eike Beer<eike at sf-mail.de>
> > CommitDate: Fri Feb 24 17:48:02 2012 +0100
> >
> > GenerateExportHeader: improve compiler identification
> >
> > Use CMAKE_<LANG>_COMPILER_VERSION instead of calling the compiler.
> > This macro predates those useful variables. This also fixes the
> > issue that g++ version detection was not working if C language was
> > not enabled.
>
> FYI, this variable is not set by all generators yet. It is computed as
> part of the compiler identification step, but that doesn't happen for
> VS and Xcode. For the other generators the compiler version will need
> to be detected as part of the ABI determination which always runs. I
> haven't had time yet to add that, so currently the documentation for the
> variables just says that they are for internal use. Note that this is
> also the case for CMAKE_<LANG>_COMPILER_ID.
Ok, but they should work for GCC and Intel, no? And this stuff as part of
CMake qualifies as internal use? So I have nothing to change?
Eike
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20120224/2e2c0b50/attachment.sig>
More information about the cmake-developers
mailing list