summaryrefslogtreecommitdiffstats
path: root/libunwind/src
diff options
context:
space:
mode:
authorDon Hinton <hintonda@gmail.com>2018-01-27 19:31:44 +0000
committerDon Hinton <hintonda@gmail.com>2018-01-27 19:31:44 +0000
commit73e88d394b5e98c5dcc4127f52e0af5bbaa196fe (patch)
treef8feb02a9f72c1dfb3e78cfdca13e580d431a102 /libunwind/src
parent4877063e195dfcc128451bbf3dd7b03d04d2562f (diff)
downloadbcm5719-llvm-73e88d394b5e98c5dcc4127f52e0af5bbaa196fe.tar.gz
bcm5719-llvm-73e88d394b5e98c5dcc4127f52e0af5bbaa196fe.zip
[cmake] [libunwind] LLVM_FOUND isn't always set, so just test if
llvm_setup_rpath() is available instead. llvm-svn: 323601
Diffstat (limited to 'libunwind/src')
-rw-r--r--libunwind/src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/src/CMakeLists.txt b/libunwind/src/CMakeLists.txt
index 601c25832b0..c8c91f257cb 100644
--- a/libunwind/src/CMakeLists.txt
+++ b/libunwind/src/CMakeLists.txt
@@ -108,7 +108,7 @@ set(LIBUNWIND_TARGETS)
# Build the shared library.
if (LIBUNWIND_ENABLE_SHARED)
add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>)
- if(LLVM_FOUND)
+ if(COMMAND llvm_setup_rpath)
llvm_setup_rpath(unwind_shared)
endif()
target_link_libraries(unwind_shared ${libraries})
OpenPOWER on IntegriCloud