mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user