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