mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
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:
parent
b9722d6671
commit
2b4f49b4e7
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,11 @@
|
|||
# Note: The variable names were chosen in conformance with the offical CMake
|
||||
# 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.")
|
||||
|
||||
if (NOT LLVM_CONFIG)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue