forked from OSchip/llvm-project
[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:
parent
4877063e19
commit
73e88d394b
|
@ -108,7 +108,7 @@ set(LIBUNWIND_TARGETS)
|
||||||
# Build the shared library.
|
# Build the shared library.
|
||||||
if (LIBUNWIND_ENABLE_SHARED)
|
if (LIBUNWIND_ENABLE_SHARED)
|
||||||
add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>)
|
add_library(unwind_shared SHARED $<TARGET_OBJECTS:unwind_objects>)
|
||||||
if(LLVM_FOUND)
|
if(COMMAND llvm_setup_rpath)
|
||||||
llvm_setup_rpath(unwind_shared)
|
llvm_setup_rpath(unwind_shared)
|
||||||
endif()
|
endif()
|
||||||
target_link_libraries(unwind_shared ${libraries})
|
target_link_libraries(unwind_shared ${libraries})
|
||||||
|
|
Loading…
Reference in New Issue