File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,20 @@ cmake_minimum_required(VERSION 3.13.2 FATAL_ERROR)
1515# │  CMake status output                                                                 │ 
1616# └──────────────────────────────────────────────────────────────────────────────────────┘ 
1717########################################################################################## 
18- message (STATUS  "CMake version   : "  "${CMAKE_SYSTEM_VERSION} " )
19- message (STATUS  "Compiler        : "  "${CMAKE_C_COMPILER} "     )
20- message (STATUS  "Operating System: "  "${CMAKE_SYSTEM} "         )
21- message (STATUS  "I am building   : "  "${PROJECT_NAME} "         )
18+ message (STATUS  "CMake version   : "  "${CMAKE_SYSTEM_VERSION} "     )
19+ message (STATUS  "Operating System: "  "${CMAKE_SYSTEM} "             )
20+ message (STATUS  "I am building   : "  "${PROJECT_NAME} "             )
21+ 
22+ if  (CMAKE_C_COMPILER_LOADED)
23+     message (STATUS  "Compiler loaded : "  "${CMAKE_C_COMPILER_LOADED} "  )
24+     message (STATUS  "Compiler type   : "  "${CMAKE_C_COMPILER_ID} "      )
25+     message (STATUS  "Compiler version: "  "${CMAKE_C_COMPILER_VERSION} " )
26+     message (STATUS  "Compiler path   : "  "${CMAKE_C_COMPILER} "         )
27+ 
28+ else ()
29+     message (FATAL_ERROR "No compiler for the job, sorry." )
30+ 
31+ endif ()
2232
2333
2434
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments