Skip to content

Commit 88434fe

Browse files
committed
LLVM_FOUND isn't always set, so just test if llvm_setup_rpath() is
available instead. llvm-svn: 323599
1 parent 34a1101 commit 88434fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/lib/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ set(LIBCXX_TARGETS)
222222
# Build the shared library.
223223
if (LIBCXX_ENABLE_SHARED)
224224
add_library(cxx_shared SHARED $<TARGET_OBJECTS:cxx_objects>)
225-
if(LLVM_FOUND)
225+
if(COMMAND llvm_setup_rpath)
226226
llvm_setup_rpath(cxx_shared)
227227
endif()
228228
target_link_libraries(cxx_shared ${LIBCXX_LIBRARIES})

0 commit comments

Comments
 (0)