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