Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 19, 2016, 1:53:36 PM (8 years ago)
Author:
muemart
Message:

Add CMake configs for Clang. Most of it is reused from GCC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/CompilerConfig.cmake

    r8351 r11076  
    2727
    2828# Configure the compiler specific build options
    29 IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)
     29IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
    3030  INCLUDE(CompilerConfigGCC)
    31 ELSEIF(MSVC)
     31ELSEIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC")
    3232  INCLUDE(CompilerConfigMSVC)
     33ELSEIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
     34  INCLUDE(CompilerConfigClang)
    3335ELSE()
    3436  MESSAGE(STATUS "Warning: Your compiler is not officially supported.")
Note: See TracChangeset for help on using the changeset viewer.