[CMake] Detecting compiler version

Filipe Sousa filipe at ipb.pt
Mon Dec 5 12:36:38 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks,
it works

William A. Hoffman wrote:
> This variable should be set to true for that compiler:
> CMAKE_COMPILER_2005
> 
> See Modules/Platform/Windows-cl.cmake for more information.
> 
> -Bill
> 
> 
> 
> At 11:19 AM 12/5/2005, Filipe Sousa wrote:
> 
> Hi,
> 
> Is there any cmake variable with the compiler version used by cmake?.
> I'm using cmake with visual studio 8 but unfortunately Microsoft
> deprecated some functions (strdup, strncpy,...) and now I get a lot of
> warnings:
> 
> warning C4996: 'strncpy' was declared deprecated
> 
> I want to disable these warnings with
> 
> SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd 4996")
> 
> How do I know if I'm using vs8 or nmake from vs8 and not something else?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD4DBQFDlHqmbQdNYqwwwCwRAnNwAJdlzNIYWcY0rS7IR3BpmYrJunmiAKC34yT1
Bg6d1PmKYg/CsN5jyXC/vw==
=JwNu
-----END PGP SIGNATURE-----


More information about the CMake mailing list