Skip to content

Commit

Permalink
Update examples/LegacyPassManager/CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Snyder <[email protected]>
  • Loading branch information
ragusaa and micahsnyder authored Feb 2, 2024
1 parent 2ffc235 commit 44ca8d4
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions examples/LegacyPassManager/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<TARGET_FILE:hello>
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()

0 comments on commit 44ca8d4

Please sign in to comment.