Changeset 19779
- Timestamp:
- 10/24/19 13:39:20 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19777 r19779 2 2 # ************ cmake ************** 3 3 # ********************************* 4 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)4 CMAKE_MINIMUM_REQUIRED(VERSION 3.0 FATAL_ERROR) 5 5 CMAKE_POLICY(SET CMP0043 NEW) 6 6 CMAKE_POLICY(SET CMP0048 NEW) … … 29 29 #CHECK_TYPE_SIZE("int" SIZEOF_INT) 30 30 31 32 33 31 # ********************************* 34 32 # ************ Project ************ … … 42 40 43 41 INCLUDE(GNUInstallDirs) 42 43 IF ("${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!") 47 ENDIF() 48 ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 49 IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8 OR 50 CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8) 51 MESSAGE(FATAL_ERROR "clang/clang++: at least version 3.8 required!") 52 ENDIF() 53 ELSE() 54 MESSAGE(WARNING "You are using an unsupported compiler! Compilation has only been tested only with clang and GCC.") 55 ENDIF() 44 56 45 57 # ======== For config.h.in =========
Note:
See TracChangeset
for help on using the changeset viewer.