r261960 - Make vtables_blacklist dependency conditional on existence of clang target.

Peter Collingbourne via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 19:07:33 PST 2016


Author: pcc
Date: Thu Feb 25 21:07:33 2016
New Revision: 261960

URL: http://llvm.org/viewvc/llvm-project?rev=261960&view=rev
Log:
Make vtables_blacklist dependency conditional on existence of clang target.

Modified:
    cfe/trunk/runtime/CMakeLists.txt

Modified: cfe/trunk/runtime/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/CMakeLists.txt?rev=261960&r1=261959&r2=261960&view=diff
==============================================================================
--- cfe/trunk/runtime/CMakeLists.txt (original)
+++ cfe/trunk/runtime/CMakeLists.txt Thu Feb 25 21:07:33 2016
@@ -142,5 +142,7 @@ add_custom_command(OUTPUT ${dst}
                    COMMAND ${CMAKE_COMMAND} -E copy_if_different ${src} ${dst}
                    COMMENT "Copying vtables blacklist")
 add_custom_target(vtables_blacklist DEPENDS ${dst})
-add_dependencies(clang vtables_blacklist)
+if(TARGET clang)
+  add_dependencies(clang vtables_blacklist)
+endif()
 install(FILES ${src} DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION})




More information about the cfe-commits mailing list