[cmake-developers] determine compilers bug?

Clinton Stimpson clinton at elemtech.com
Fri Feb 18 14:17:34 EST 2011


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.

-- 
Clinton Stimpson
Elemental Technologies, Inc
Computational Simulation Software, LLC
www.csimsoft.com



More information about the cmake-developers mailing list