Ignore:
Timestamp:
10/24/19 13:39:48 (5 years ago)
Author:
tbretz
Message:
Enforce at least cmake 3.0 (cmake 2.8.12 fails), gcc 4.4.7 (known to work on SL6.10 if root compiles with it) and clang 3.8 (known to work in Ubuntu 16.04 if root compiles with it)
File:
1 edited

Legend:

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

    r19757 r19780  
    22# ************ cmake **************
    33# *********************************
    4 CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
     4CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR)
    55CMAKE_POLICY(SET CMP0043 NEW)
    66CMAKE_POLICY(SET CMP0048 NEW)
     
    3737
    3838INCLUDE(GNUInstallDirs)
     39
     40IF ("${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!")
     44    ENDIF()
     45ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
     46    IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8 OR
     47        CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8)
     48        MESSAGE(FATAL_ERROR "clang/clang++: at least version 3.8 required!")
     49    ENDIF()
     50ELSE()
     51    MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang and GCC.")
     52ENDIF()
    3953
    4054# ======== For config.h.in =========
Note: See TracChangeset for help on using the changeset viewer.