aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-07-14 05:01:33 +0000
committerterminaldweller <thabogre@gmail.com>2021-07-14 05:01:33 +0000
commit3d8a89bad9ccc48e7877fa1c4219a1064666b7c9 (patch)
treebb904c6ec6f18876a8e0af0a8c7012c5e7e6deab /CMakeLists.txt
parentaddes a macro for ast_type_traits. starting from 12 it had a namespace change (diff)
downloadcgrep-3d8a89bad9ccc48e7877fa1c4219a1064666b7c9.tar.gz
cgrep-3d8a89bad9ccc48e7877fa1c4219a1064666b7c9.zip
added llvm 12 and 13 to travis. added some dockerfiles i used for building/testing against different llvm versions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72507d7..d144b7b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,8 +1,6 @@
cmake_minimum_required(VERSION 3.14.5)
project(cgrep VERSION 1.1)
-# set(CMAKE_CXX_COMPILER clang++-10 CACHE STRING "set the actual name of clang++, i.e. clang++-10" FORCE)
-# set(CMAKE_CXX_COMPILER clang++-10)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(LLVM_CONF llvm-config-10 CACHE STRING "set the actual name of llvm-config, i.e. llvm-config-10")
@@ -15,10 +13,6 @@ execute_process(COMMAND ${LLVM_CONF} --includedir OUTPUT_VARIABLE LLVM_INC_DIR)
string(REGEX REPLACE "\n$" "" LLVM_INC_DIR "${LLVM_INC_DIR}")
execute_process(COMMAND ${LLVM_CONF} --cxxflags OUTPUT_VARIABLE LLVM_CXX_FLAGS)
string(REGEX REPLACE "\n$" "" LLVM_CXX_FLAGS "${LLVM_CXX_FLAGS}")
-# execute_process(COMMAND ${LLVM_CONF} --src-root OUTPUT_VARIABLE LLVM_SRC_ROOT)
-# string(REGEX REPLACE "\n$" "" LLVM_SRC_ROOT "${LLVM_SRC_ROOT}")
-# execute_process(COMMAND ${LLVM_CONF} --obj-root OUTPUT_VARIABLE LLVM_OBJ_ROOT)
-# string(REGEX REPLACE "\n$" "" LLVM_OBJ_ROOT "${LLVM_OBJ_ROOT}")
execute_process(COMMAND ${LLVM_CONF} --libdir OUTPUT_VARIABLE LLVM_LIB_DIR)
string(REGEX REPLACE "\n" "" LLVM_LIB_DIR "${LLVM_LIB_DIR}")
execute_process(COMMAND ${LLVM_CONF} --ldflags OUTPUT_VARIABLE LLVM_LD_FLAGS)
@@ -32,8 +26,6 @@ string(REGEX REPLACE "^-l" "" LLVM_SYS_LIBS "${LLVM_SYS_LIBS}")
add_compile_options(${LLVM_CXX_FLAGS})
add_compile_options(-I${LLVM_INC_DIR})
-# add_compile_options(-I"${LLVM_SRC_ROOT}/tools/clang/include")
-# add_compile_options(-I"${LLVM_OBJ_ROOT}/tools/clang/include")
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})