Changeset 19790 for trunk/Mars
- Timestamp:
- 10/24/19 20:41:51 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19783 r19790 2 2 # ************ cmake ************** 3 3 # ********************************* 4 CMAKE_MINIMUM_REQUIRED(VERSION 3. 0FATAL_ERROR)4 CMAKE_MINIMUM_REQUIRED(VERSION 3.1 FATAL_ERROR) 5 5 CMAKE_POLICY(SET CMP0043 NEW) 6 6 CMAKE_POLICY(SET CMP0048 NEW) 7 8 # TARGET_SOURCES requires v3.1 7 9 8 10 # Enable debug symbols by default … … 48 50 ENDIF() 49 51 ELSEIF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") 50 SET(CLANG_MIN 3. 8)51 IF (CMAKE_C_COMPILER_VERSION VERSION_LESS 3.8OR52 CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8)52 SET(CLANG_MIN 3.5) 53 IF (CMAKE_C_COMPILER_VERSION VERSION_LESS CLANG_MIN OR 54 CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_MIN) 53 55 MESSAGE(FATAL_ERROR "\n clang/clang++ ${CLANG_MIN} or higher is required.\n You are running version ${CMAKE_C_COMPILER_VERSION}/${CMAKE_CXX_COMPILER_VERSION}.") 54 56 ENDIF() … … 235 237 # ^~~~~~~~~~~~~~~ 236 238 237 IF( ROOT_VERSION VERSION_GREATER_EQUAL6.18 AND ROOT_VERSION VERSION_LESS 6.19)239 IF(NOT ROOT_VERSION VERSION_LESS 6.18 AND ROOT_VERSION VERSION_LESS 6.19) 238 240 SET(CMAKE_CXX_FLAGS 239 241 "${CMAKE_CXX_FLAGS} -Wno-cast-align")
Note:
See TracChangeset
for help on using the changeset viewer.