• Brad King's avatar
    Fix and simplify Fortran test compiler compatibility check · fcb2a279
    Brad King authored
    Since commit 38aab379 (Set CMAKE_<lang>_COMPILER_ID for VS generators,
    2011-09-02) the VS IDE generators set the C and C++ compiler id to MSVC
    and the Fortran compiler id to Intel.  This caused the Fortran test to
    fail compatible compiler detection because the if() test
    
      "${CMAKE_C_COMPILER_ID}" MATCHES "MSVC"
    
    is evaluated as the "var MATCHES regex" signature which evaluates the
    compiler id "MSVC" as a variable which is defined to 1 which does not
    match "MSVC".
    
    Combine tests for non-identical but compatible compiler vendors into a
    single regex match whose left hand side will not be defined as a
    variable.
    fcb2a279
Name
Last commit
Last update
..
Executable Loading commit data...
External Loading commit data...
Library Loading commit data...
in_interface Loading commit data...
include Loading commit data...
CMakeLists.txt Loading commit data...
foo.f Loading commit data...
hello.f Loading commit data...
mainc.c Loading commit data...
maincxx.c Loading commit data...
myc.c Loading commit data...
mycxx.cxx Loading commit data...
mysub.f Loading commit data...
test_module_implementation.f90 Loading commit data...
test_module_interface.f90 Loading commit data...
test_module_main.f90 Loading commit data...
test_preprocess.F90 Loading commit data...
test_use_in_comment_fixedform.f Loading commit data...
test_use_in_comment_freeform.f90 Loading commit data...
testf.f Loading commit data...
world.f Loading commit data...
world_gnu.def Loading commit data...
world_icl.def Loading commit data...