diff --git a/CMakeLists.txt b/CMakeLists.txt index 501dc0b8f..c6f04a606 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ endif() if (NOT LLVM_BUILD_TYPE) set(LLVM_BUILD_TYPE ${CMAKE_BUILD_TYPE}) endif() -set(LLVM_CONFIG_EXECUTABLE ${CMAKE_SOURCE_DIR}/third_party/llvm-Release-install/bin/llvm-config) +set(LLVM_CONFIG_EXECUTABLE ${CMAKE_SOURCE_DIR}/third_party/llvm-${LLVM_BUILD_TYPE}-install/bin/llvm-config) if(NOT EXISTS ${LLVM_CONFIG_EXECUTABLE}) message(FATAL_ERROR "llvm-config could not be found!") endif()