mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[cmake] [libcxxabi] LLVM_FOUND isn't always set, so just test if
llvm_setup_rpath() is available instead. llvm-svn: 323600
This commit is contained in:
parent
88434fe05f
commit
4877063e19
@ -127,7 +127,7 @@ set(LIBCXXABI_TARGETS)
|
||||
# Build the shared library.
|
||||
if (LIBCXXABI_ENABLE_SHARED)
|
||||
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
|
||||
if(LLVM_FOUND)
|
||||
if(COMMAND llvm_setup_rpath)
|
||||
llvm_setup_rpath(cxxabi_shared)
|
||||
endif()
|
||||
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})
|
||||
|
Loading…
x
Reference in New Issue
Block a user