diff options
author | terminaldweller <thabogre@gmail.com> | 2022-11-24 13:26:43 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-11-24 13:26:43 +0000 |
commit | 71e8c763d66776006e368815b8ed4edfa3b16513 (patch) | |
tree | 4e9d4360a248a1c2175ff2c6749e67e2ca018eae | |
parent | travis build fix for 15 and 16 (diff) | |
download | cgrep-71e8c763d66776006e368815b8ed4edfa3b16513.tar.gz cgrep-71e8c763d66776006e368815b8ed4edfa3b16513.zip |
travis build fix for 15 and 16
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | CMakeLists.txt | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 1135dfa..1ac5517 100644 --- a/.travis.yml +++ b/.travis.yml @@ -150,7 +150,7 @@ matrix: - git submodule init
- git submodule update
script:
- - mkdir build && cd build && cmake ../ -DLLVM_CONF=llvm-config-15 -DCMAKE_CXX_COMPILER=clang++-15 -DUSE_MONOLITH_LIBTOOLING=OFF && make
+ - mkdir build && cd build && cmake ../ -DLLVM_CONF=llvm-config-15 -DCMAKE_CXX_COMPILER=clang++-15 -DUSE_MONOLITH_LIBTOOLING=OFF -DLLVM_PACKAGE_VERSION=15.0.0 && make
- dist: focal
name: llvm16
sudo: required
@@ -165,4 +165,4 @@ matrix: - git submodule init
- git submodule update
script:
- - mkdir build && cd build && cmake ../ -DLLVM_CONF=llvm-config-16 -DCMAKE_CXX_COMPILER=clang++-16 -DUSE_MONOLITH_LIBTOOLING=OFF && make
+ - mkdir build && cd build && cmake ../ -DLLVM_CONF=llvm-config-16 -DCMAKE_CXX_COMPILER=clang++-16 -DUSE_MONOLITH_LIBTOOLING=OFF -DLLVM_PACKAGE_VERSION=16.0.0 && make
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce0a106..4cca394 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,7 @@ endif() target_link_libraries(cgrep ${LLVM_SYS_LIBS}) target_link_libraries(cgrep ${LLVM_LIBS}) -if(LLVM_PACKAGE_VERSION VERSION_EQUAL "16.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "16.0.0") +if(LLVM_PACKAGE_VERSION VERSION_EQUAL "15.0.0" OR LLVM_PACKAGE_VERSION VERSION_GREATER "15.0.0") target_link_libraries(cgrep clangSupport) endif() |