Try llvm-config binaries with version suffix.

This allows us to pick up the newest available version on
several common Debian derivatives.

GitHub: Fixes #376.
This commit is contained in:
David Nadlinger 2013-05-31 22:31:38 +02:00
parent b9722d6671
commit 2b4f49b4e7

View file

@ -22,7 +22,11 @@
# Note: The variable names were chosen in conformance with the offical CMake # Note: The variable names were chosen in conformance with the offical CMake
# guidelines, see ${CMAKE_ROOT}/Modules/readme.txt. # guidelines, see ${CMAKE_ROOT}/Modules/readme.txt.
find_program(LLVM_CONFIG llvm-config ${LLVM_ROOT_DIR}/bin # Try suffixed versions to pick up the newest LLVM install available on Debian
# derivatives.
find_program(LLVM_CONFIG
NAMES llvm-config-3.3 llvm-config-3.2 llvm-config-3.1 llvm-config
PATHS ${LLVM_ROOT_DIR}/bin
DOC "Path to llvm-config tool.") DOC "Path to llvm-config tool.")
if (NOT LLVM_CONFIG) if (NOT LLVM_CONFIG)