Changeset 19782 for trunk/Mars
- Timestamp:
- 10/24/19 13:44:58 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19779 r19782 42 42 43 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!") 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}") 47 48 ENDIF() 48 49 ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 50 SET(CLANG_MIN 3.8) 49 51 IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8 OR 50 52 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}") 52 54 ENDIF() 53 55 ELSE() 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++.") 55 57 ENDIF() 56 58
Note:
See TracChangeset
for help on using the changeset viewer.