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()