[compiler-rt] r202954 - [CMake] Minor fix to llvm-config discovery
Alexey Samsonov
samsonov at google.com
Wed Mar 5 01:21:50 PST 2014
Author: samsonov
Date: Wed Mar 5 03:21:49 2014
New Revision: 202954
URL: http://llvm.org/viewvc/llvm-project?rev=202954&view=rev
Log:
[CMake] Minor fix to llvm-config discovery
Modified:
compiler-rt/trunk/CMakeLists.txt
Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=202954&r1=202953&r2=202954&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Wed Mar 5 03:21:49 2014
@@ -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()
More information about the llvm-commits
mailing list