aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2020-11-03 08:02:56 +0000
committerbloodstalker <thabogre@gmail.com>2020-11-03 08:02:56 +0000
commita72bc2acec2e1ac5ca58bc7924e6ba997746db04 (patch)
tree10443873730ed52c0e89a738911c3ee205b54c46
parentcmake at last (diff)
downloadcgrep-a72bc2acec2e1ac5ca58bc7924e6ba997746db04.tar.gz
cgrep-a72bc2acec2e1ac5ca58bc7924e6ba997746db04.zip
some fixes for the cmake files
-rw-r--r--CMakeLists.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d0c26c..3668acd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,23 +4,24 @@ project(cgrep VERSION 1.1)
set(CMAKE_CXX_COMPILER clang++)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
+set(LLVM_CONF llvm-config)
function(CleanMessage)
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${ARGN}")
endfunction()
-execute_process(COMMAND llvm-config --cxxflags OUTPUT_VARIABLE LLVM_CXX_FLAGS)
+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-config --src-root OUTPUT_VARIABLE LLVM_SRC_ROOT)
+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-config --obj-root OUTPUT_VARIABLE LLVM_OBJ_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-config --ldflags OUTPUT_VARIABLE LLVM_LD_FLAGS)
+execute_process(COMMAND LLVM_CONF --ldflags OUTPUT_VARIABLE LLVM_LD_FLAGS)
string(REGEX REPLACE "\n" "" LLVM_LD_FLAGS "${LLVM_LD_FLAGS}")
-execute_process(COMMAND llvm-config --libs OUTPUT_VARIABLE LLVM_LIBS)
+execute_process(COMMAND LLVM_CONF --libs OUTPUT_VARIABLE LLVM_LIBS)
string(REGEX REPLACE "\n$" "" LLVM_LIBS "${LLVM_LIBS}")
string(REGEX REPLACE "^-l" "" LLVM_LIBS "${LLVM_LIBS}")
-execute_process(COMMAND llvm-config --system-libs OUTPUT_VARIABLE LLVM_SYS_LIBS)
+execute_process(COMMAND LLVM_CONF --system-libs OUTPUT_VARIABLE LLVM_SYS_LIBS)
string(REGEX REPLACE "\n$" "" LLVM_SYS_LIBS "${LLVM_SYS_LIBS}")
string(REGEX REPLACE "^-l" "" LLVM_SYS_LIBS "${LLVM_SYS_LIBS}")