[cmake] [libunwind] LLVM_FOUND isn't always set, so just test if

llvm_setup_rpath() is available instead.

llvm-svn: 323601
This commit is contained in:
Don Hinton 2018-01-27 19:31:44 +00:00
parent 4877063e19
commit 73e88d394b
1 changed files with 1 additions and 1 deletions

View File

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