Skip to content

Commit 4877063

Browse files
committed
[cmake] [libcxxabi] LLVM_FOUND isn't always set, so just test if
llvm_setup_rpath() is available instead. llvm-svn: 323600
1 parent 88434fe commit 4877063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxxabi/src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ set(LIBCXXABI_TARGETS)
127127
# Build the shared library.
128128
if (LIBCXXABI_ENABLE_SHARED)
129129
add_library(cxxabi_shared SHARED $<TARGET_OBJECTS:cxxabi_objects>)
130-
if(LLVM_FOUND)
130+
if(COMMAND llvm_setup_rpath)
131131
llvm_setup_rpath(cxxabi_shared)
132132
endif()
133133
target_link_libraries(cxxabi_shared ${LIBCXXABI_LIBRARIES})

0 commit comments

Comments
 (0)