diff options
author | Don Hinton <hintonda@gmail.com> | 2018-01-27 19:18:04 +0000 |
---|---|---|
committer | Don Hinton <hintonda@gmail.com> | 2018-01-27 19:18:04 +0000 |
commit | 4877063e195dfcc128451bbf3dd7b03d04d2562f (patch) | |
tree | 4a73cd346259ef02bf9d87ee26b2f97f98dbf983 /libcxxabi/src | |
parent | 88434fe05fdb112a33052c4d8a91c9e989cb032d (diff) | |
download | bcm5719-llvm-4877063e195dfcc128451bbf3dd7b03d04d2562f.tar.gz bcm5719-llvm-4877063e195dfcc128451bbf3dd7b03d04d2562f.zip |
[cmake] [libcxxabi] LLVM_FOUND isn't always set, so just test if
llvm_setup_rpath() is available instead.
llvm-svn: 323600
Diffstat (limited to 'libcxxabi/src')
-rw-r--r-- | libcxxabi/src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt index a5905ce80d4..5a929cff170 100644 --- a/libcxxabi/src/CMakeLists.txt +++ b/libcxxabi/src/CMakeLists.txt @@ -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}) |