[cmake-developers] determine compilers bug?
Brad King
brad.king at kitware.com
Tue Feb 22 17:21:32 EST 2011
On 02/18/2011 02:17 PM, Clinton Stimpson wrote:
>
> I just noticed this in CMakeDetermineCCompiler.cmake
>
> IF(NOT CMAKE_C_COMPILER)
> SET(CMAKE_CXX_COMPILER_INIT NOTFOUND)
> (notice the CXX part above?)
>
> whereas CMakeDetermineCXXCompiler.cmake has
>
> IF(NOT CMAKE_CXX_COMPILER)
> SET(CMAKE_CXX_COMPILER_INIT NOTFOUND)
>
> And CMakeDetermineFortranCompiler.cmake doesn't clear
> CMAKE_Fortran_COMPILER_INIT but uses it.
>
> The was noticed when trying to specify preferred compilers with the *_INIT
> variables and the CMAKE_CXX_COMPILER_INIT didn't work and C and Fortran did.
Wow, that's been there a while:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=35fb6f22
Go ahead and fix it.
Thanks,
-Brad
More information about the cmake-developers
mailing list