From 6c7759bf38ad028a8b1cd4ab0bd4cd95203822f4 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:35:58 -0500 Subject: [PATCH] Update examples/LegacyPassManager/CMakeLists.txt Co-authored-by: Micah Snyder --- examples/LegacyPassManager/CMakeLists.txt | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/examples/LegacyPassManager/CMakeLists.txt b/examples/LegacyPassManager/CMakeLists.txt index dea625e7cb..42b98f73f6 100644 --- a/examples/LegacyPassManager/CMakeLists.txt +++ b/examples/LegacyPassManager/CMakeLists.txt @@ -38,30 +38,6 @@ target_link_libraries(hello_obj PUBLIC ${LLVM_LIBS}) if(WIN32) install(TARGETS hello DESTINATION .) - - # Also install shared library (DLL) dependencies - install(CODE [[ - file(GET_RUNTIME_DEPENDENCIES - LIBRARIES - $ - RESOLVED_DEPENDENCIES_VAR _r_deps - UNRESOLVED_DEPENDENCIES_VAR _u_deps - DIRECTORIES - ${LLVM_LIBRARY_DIRS} - ) - foreach(_file ${_r_deps}) - string(TOLOWER ${_file} _file_lower) - if(NOT ${_file_lower} MATCHES "c:[\\/]windows[\\/]system32.*") - file(INSTALL - DESTINATION "${CMAKE_INSTALL_PREFIX}" - TYPE SHARED_LIBRARY - FOLLOW_SYMLINK_CHAIN - FILES "${_file}" - ) - endif() - endforeach() - #message("UNRESOLVED_DEPENDENCIES_VAR: ${_u_deps}") - ]]) else() install(TARGETS hello DESTINATION ${CMAKE_INSTALL_LIBDIR}) endif()