Changeset 19781 for trunk/FACT++


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

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/CMakeLists.txt

    r19780 r19781  
    3939
    4040IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
    41     IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.4.7 OR
    42         CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.4.7)
    43         MESSAGE(FATAL_ERROR "gcc/g++: at least version 4.4.7 required!")
     41    SET(GCC_MIN 4.4.7)
     42    IF (CMAKE_C_COMPILER_VERSION VERSION_LESS GCC_MIN OR
     43        CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_MIN)
     44        MESSAGE(FATAL_ERROR "gcc/g++ ${GCC_MIN} or higher is required.  You are running version ${CMAKE_C_COMPILER_VERSION}/${CMAKE_CXX_COMPILER_VERSION}")
    4445    ENDIF()
    4546ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
     47    SET(CLANG_MIN 3.8)
    4648    IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8 OR
    4749        CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8)
    48         MESSAGE(FATAL_ERROR "clang/clang++: at least version 3.8 required!")
     50        MESSAGE(FATAL_ERROR "clang/clang++ ${CLANG_MIN} or higher is required.  You are running version ${CMAKE_C_COMPILER_VERSION}/${CMAKE_CXX_COMPILER_VERSION}")
    4951    ENDIF()
    5052ELSE()
    51     MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang and GCC.")
     53    MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang/clang++ and gcc/g++.")
    5254ENDIF()
    5355
Note: See TracChangeset for help on using the changeset viewer.