• Brad King's avatar
    Quote ${CMAKE_<LANG>_COMPILER} while enabling a language · 705ae004
    Brad King authored
    Even though this variable gets set to CMAKE_<LANG>_COMPILER-NOTFOUND when
    the compiler is not found, CMake<LANG>Compiler.cmake gets removed by
    cmGlobalGenerator::EnableLanguage so in try compiles the value is empty.
    Quote references to the variable in
    
     Modules/CMake(C|CXX|Fortran)Information.cmake
     Modules/CMakeDetermineCompilerId.cmake
    
    to avoid dropping arguments from commands that expect them.
    705ae004
CMakeCXXInformation.cmake 10.4 KB