compiler.cmake
14 lines
| 440 B
| text/x-cmake
|
CMakeLexer
r0 | # | |||
# compiler.cmake : configure the compilation flags | ||||
# | ||||
mperrinel
|
r17 | message("Compiler id: ${CMAKE_CXX_COMPILER_ID}") | ||
r11 | IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |||
mperrinel
|
r17 | MESSAGE("Compiler supported") | ||
mperrinel
|
r14 | ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | ||
mperrinel
|
r17 | MESSAGE("Compiler supported") | ||
r11 | ELSEIF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | |||
mperrinel
|
r17 | INCLUDE("cmake/compiler/compiler_msvc.cmake") | ||
r0 | ELSE() | |||
MESSAGE(FATAL_ERROR "Compiler not supported") | ||||
ENDIF() | ||||