Changeset 19782 for trunk/Mars


Ignore:
Timestamp:
10/24/19 13:44:58 (5 years ago)
Author:
tbretz
Message:
Same error message than for cmake itself.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19779 r19782  
    4242
    4343IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    44     IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.4.7 OR
    45         CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4.7)
    46         MESSAGE(FATAL_ERROR "gcc/g++: at least version 4.4.7 required!")
     44    SET(GCC_MIN 4.4.7)
     45    IF (CMAKE_C_COMPILER_VERSION VERSION_LESS GCC_MIN OR
     46        CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_MIN)
     47        MESSAGE(FATAL_ERROR "gcc/g++ ${GCC_MIN} or higher is required.  You are running version ${CMAKE_C_COMPILER_VERSION}/${CMAKE_CXX_COMPILER_VERSION}")
    4748    ENDIF()
    4849ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
     50    SET(CLANG_MIN 3.8)
    4951    IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8 OR
    5052        CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8)
    51         MESSAGE(FATAL_ERROR "clang/clang++: at least version 3.8 required!")
     53        MESSAGE(FATAL_ERROR "clang/clang++ ${CLANG_MIN} or higher is required.  You are running version ${CMAKE_C_COMPILER_VERSION}/${CMAKE_CXX_COMPILER_VERSION}")
    5254    ENDIF()
    5355ELSE()
    54     MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang and GCC.")
     56    MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang/clang++ and gcc/g++.")
    5557ENDIF()
    5658
Note: See TracChangeset for help on using the changeset viewer.