summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorSimon Richter <Simon.Richter@hogyros.de>2013-04-16 20:02:08 +0200
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-18 11:21:20 +0800
commita8bf5a08865f2132bcbe1a8f740c407dbcba9f94 (patch)
treebac3c49aa3d2664890afe6eafad73cc1d284c92f /CMake
parent66234d0217ac67034372dccabb08b7ec02872898 (diff)
Prefer versioned llvm-config
If multiple versions are installed, prefer version 3.2 before falling back to the default version. Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'CMake')
-rw-r--r--CMake/FindLLVM.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMake/FindLLVM.cmake b/CMake/FindLLVM.cmake
index 6137a9cf..c06b8a48 100644
--- a/CMake/FindLLVM.cmake
+++ b/CMake/FindLLVM.cmake
@@ -7,9 +7,9 @@
# LLVM_MODULE_LIBS - list of llvm libs for working with modules.
# LLVM_FOUND - True if llvm found.
if (LLVM_INSTALL_DIR)
- find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config llvm-config-32 llvm-config-3.0 DOC "llvm-config executable" PATHS ${LLVM_INSTALL_DIR} NO_DEFAULT_PATH)
-else (LLVM_INSTALL_DIR)
- find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config llvm-config-32 llvm-config-3.0 DOC "llvm-config executable")
+ find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config-32 llvm-config-3.2 llvm-config DOC "llvm-config executable" PATHS ${LLVM_INSTALL_DIR} NO_DEFAULT_PATH)
+else (LLVM_INSTALL_DIR)
+ find_program(LLVM_CONFIG_EXECUTABLE NAMES llvm-config-32 llvm-config-3.2 llvm-config DOC "llvm-config executable")
endif (LLVM_INSTALL_DIR)
if (LLVM_CONFIG_EXECUTABLE)