diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-01-14 03:47:49 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-01-14 03:47:49 +0000 |
commit | f3a0256e9c943eb05b973ea8f4e3ed2911ba9d5b (patch) | |
tree | d31c1547eb08a97c9ce378fb638c812525154afc /CMakeLists.txt | |
parent | 0ecfd76f83e8388125b6dca6a99efb2823c7e940 (diff) |
Don't dump llvm-config --cmakedir output if command fails.
This patch adjusts the out-of-tree CMake configuration so that
the stderr output is ignored when an old llvm-config is found
that doesn't support --cmakedir.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@291993 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index adee47f..ac65392 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,8 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) execute_process( COMMAND ${LLVM_CONFIG_PATH} --cmakedir RESULT_VARIABLE HAD_ERROR - OUTPUT_VARIABLE CONFIG_OUTPUT) + OUTPUT_VARIABLE CONFIG_OUTPUT + ERROR_QUIET) if(NOT HAD_ERROR) string(STRIP "${CONFIG_OUTPUT}" LLVM_CMAKE_PATH) else() |