diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index b9a833f7bb..d33ff0dad8 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -70,6 +70,8 @@ if( NOT NM_PATH ) message(FATAL_ERROR "`nm' not found") endif() +get_property(llvm_libs GLOBAL PROPERTY LLVM_LIBS) + add_custom_command(OUTPUT ${LIBDEPS_TMP} COMMAND ${PERL_EXECUTABLE} ${LLVM_MAIN_SRC_DIR}/utils/GenLibDeps.pl -flat ${CMAKE_ARCHIVE_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR} ${NM_PATH} > ${LIBDEPS_TMP} DEPENDS ${llvm_libs} @@ -122,6 +124,7 @@ add_custom_command(OUTPUT ${LLVM_CONFIG} add_custom_target(llvm-config.target ALL DEPENDS ${LLVM_CONFIG}) +get_property(llvm_lib_targets GLOBAL PROPERTY LLVM_LIB_TARGETS) add_dependencies(llvm-config.target ${llvm_lib_targets}) # Make sure that llvm-config builds before the llvm tools, so we have |