Skip to content
  • Brad King's avatar
    Re-order C/C++/Fortran compiler determination logic · b8b5c834
    Brad King authored
    Re-organize CMakeDetermine(C|CXX|Fortran)Compiler.cmake to search for
    the compiler command-line tool only under generators for which it makes
    sense.  For the Visual Studio generators we do not expect to find the
    compiler tool from the environment, nor would we use the result anyway.
    
    Furthermore, set CMAKE_${lang}_COMPILER_ID_TEST_FLAGS only when it has a
    chance to be used.  Extract _CMAKE_TOOLCHAIN_LOCATION from the compiler
    path after running the compiler id step so in the future that step can
    help find the path to the compiler.
    b8b5c834