Philip Lowman wrote:
CMAKE_C_COMPILER_ID
CMAKE_CXX_COMPILER_ID
CMAKE_Fortran_COMPILER_ID
Thanks for adding this Bill. With the exception of dealing with MinGW
or differing versions of MSVC this would seem to be a very good
replacement for conditionals like:
[mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2008 12:27 PM
To: Philip Lowman
Cc: [EMAIL PROTECTED]; Bartlett, Roscoe A;
cmake@cmake.org; Pawlowski, Roger P
Subject: Re: [CMake] How do you determine what compiler is being used?
Philip Lowman wrote:
CMAKE_C_COMPILER_ID
Hello,
How can determine what general type of compiler is being used? For example,
how can we determine if our project is being configured to use the Sun CC
compiler? In C++ code I can just check for the define __sun but how can I get
this info in my CMakeLists.txt file? I could use
2008/12/3 Bartlett, Roscoe A [EMAIL PROTECTED]:
Hello,
How can determine what general type of compiler is being used? For example,
how can we determine if our project is being configured to use the Sun CC
compiler? In C++ code I can just check for the define __sun but how can I
get this
like to have it to add to
its sources?
- Ross
-Original Message-
From: Eric Noulard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2008 4:06 PM
To: Bartlett, Roscoe A
Cc: cmake@cmake.org; Pawlowski, Roger P
Subject: Re: [CMake] How do you determine what compiler
On Wed, Dec 3, 2008 at 9:48 PM, Bill Hoffman [EMAIL PROTECTED]wrote:
This is already done in CMake 2.6. See Modules/CMakeCCompilerId.c.in, it
is even better than the above because it works when cross compiling. It does
not use a try-run, but rather a try-compile, and then it looks for strings