forked from OSchip/llvm-project
[CMake] Minor fix to llvm-config discovery
llvm-svn: 202954
This commit is contained in:
parent
3e4c697ca1
commit
1464b5966d
|
@ -74,9 +74,9 @@ else()
|
|||
set(COMPILER_RT_TEST_COMPILER ${CMAKE_C_COMPILER})
|
||||
set(COMPILER_RT_TEST_COMPILER_ID ${CMAKE_C_COMPILER_ID})
|
||||
|
||||
set(LLVM_CONFIG_PATH "" CACHE PATH "Path to llvm-config binary")
|
||||
if (NOT LLVM_CONFIG_PATH)
|
||||
find_program(LLVM_CONFIG_PATH "llvm-config")
|
||||
find_program(LLVM_CONFIG_PATH "llvm-config"
|
||||
DOC "Path to llvm-config binary")
|
||||
if (NOT LLVM_CONFIG_PATH)
|
||||
message(FATAL_ERROR "llvm-config not found: specify LLVM_CONFIG_PATH")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue