Changeset 19780 for trunk/FACT++/CMakeLists.txt
- Timestamp:
- 10/24/19 13:39:48 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/CMakeLists.txt
r19757 r19780 2 2 # ************ cmake ************** 3 3 # ********************************* 4 CMAKE_MINIMUM_REQUIRED(VERSION 3. 5)4 CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR) 5 5 CMAKE_POLICY(SET CMP0043 NEW) 6 6 CMAKE_POLICY(SET CMP0048 NEW) … … 37 37 38 38 INCLUDE(GNUInstallDirs) 39 40 IF ("${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() 45 ELSEIF ("${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() 50 ELSE() 51 MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang and GCC.") 52 ENDIF() 39 53 40 54 # ======== For config.h.in =========
Note:
See TracChangeset
for help on using the changeset viewer.