From 3f4072d5b9eb5a0c03d7af2ababeb5846e4d1fde Mon Sep 17 00:00:00 2001 From: comex Date: Sun, 10 Jul 2016 21:22:47 -0400 Subject: [PATCH] Fix configuration when LLVM_PACKAGE_VERSION is unset --- CMakeTests/FindLLVM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeTests/FindLLVM.cmake b/CMakeTests/FindLLVM.cmake index 2646477e4e..006ca9e899 100644 --- a/CMakeTests/FindLLVM.cmake +++ b/CMakeTests/FindLLVM.cmake @@ -13,7 +13,7 @@ foreach(LLVM_CONFIG_NAME ${LLVM_CONFIG_EXECUTABLES}) if (LLVM_CONFIG_EXE) execute_process(COMMAND ${LLVM_CONFIG_EXE} --version OUTPUT_VARIABLE LLVM_PACKAGE_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) - if (${LLVM_PACKAGE_VERSION} VERSION_GREATER "3.3") + if (LLVM_PACKAGE_VERSION VERSION_GREATER "3.3") execute_process(COMMAND ${LLVM_CONFIG_EXE} --includedir OUTPUT_VARIABLE LLVM_INCLUDE_DIRS OUTPUT_STRIP_TRAILING_WHITESPACE ) execute_process(COMMAND ${LLVM_CONFIG_EXE} --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS