Ignore:
Timestamp:
Nov 11, 2017, 2:56:39 PM (18 months ago)
Author:
cameron
Message:

LLVM_VERSION_INTEGER allows ordered comparisons, initial preparation for LLVM 3.9.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r5725 r5731  
    199199
    200200# detect LLVM version and add compiler flags.
     201MATH(EXPR LLVM_VERSION_INTEGER "${LLVM_VERSION_MAJOR} * 10000 + ${LLVM_VERSION_MINOR} * 100 + ${LLVM_VERSION_PATCH}")
     202SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_VERSION_INTEGER=${LLVM_VERSION_INTEGER}")
    201203SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLLVM_VERSION_major=${LLVM_VERSION_MAJOR} -DLLVM_VERSION_MINOR=${LLVM_VERSION_MINOR}")
    202 IF (${LLVM_VERSION_MAJOR} EQUAL 3)
    203   IF (${LLVM_VERSION_MINOR} EQUAL 6)
    204     message(STATUS "Found LLVM ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}")
    205     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LLVM_3_6")
    206   ELSEIF (${LLVM_VERSION_MINOR} EQUAL 7)
    207     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_LLVM_3_7")
    208   ENDIF()
    209 ENDIF()
    210204
    211205SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPARABIX_VERSION='\"${Parabix_REVISION}\"'")
Note: See TracChangeset for help on using the changeset viewer.