[CMake] Minor fix to llvm-config discovery

llvm-svn: 202954
This commit is contained in:
Alexey Samsonov 2014-03-05 09:21:49 +00:00
parent 3e4c697ca1
commit 1464b5966d
1 changed files with 2 additions and 2 deletions

View File

@ -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()