File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,6 @@ if(${CMAKE_VERSION} VERSION_LESS "3.13")
7474  message (FATAL_ERROR "The minimum supported CMake version is 3.13. You are running version ${CMAKE_VERSION} " )
7575endif ()
7676
77- include_guard ()
7877include (FindPackageHandleStandardArgs)
7978
8079if (NOT  MKL_LIBRARIES)
@@ -86,6 +85,7 @@ if(NOT MKL_LIBRARIES)
8685  # Compiler checks 
8786  # ================ 
8887
88+   include (CMakeDetermineCCompiler)
8989  if (CMAKE_C_COMPILER)
9090    get_filename_component (C_COMPILER_NAME ${CMAKE_C_COMPILER}  NAME )
9191  endif ()
@@ -98,7 +98,7 @@ if(NOT MKL_LIBRARIES)
9898  elseif (CMAKE_C_COMPILER_ID STREQUAL  "GNU" )
9999    set (GNU_C_COMPILER ON )
100100  else ()
101-     message (FATAL_ERROR "Only clang or gnu compilers supported." )
101+     message (FATAL_ERROR "Only clang or gnu compilers supported. Name= ${C_COMPILER_NAME}  - Id= ${CMAKE_C_COMPILER_ID} " )
102102  endif ()
103103
104104  # ================ 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments