From 3086f259ff919f0c30ac6ba3d898edf4900979d2 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 8 Dec 2021 14:25:20 +0100 Subject: [PATCH] build: Copy dependencies of all components on install --- CMakeLists.txt | 4 ++-- cmake/build_helpers.cmake | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4277a955f..c196f21a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,9 +54,9 @@ add_executable(imhex ${application_type} set_target_properties(imhex PROPERTIES CXX_VISIBILITY_PRESET hidden) if (WIN32) - target_link_libraries(imhex dl libimhex wsock32 ws2_32 Dwmapi.lib) + target_link_libraries(imhex PUBLIC dl libimhex wsock32 ws2_32 Dwmapi.lib) else () - target_link_libraries(imhex dl libimhex pthread) + target_link_libraries(imhex PUBLIC dl libimhex pthread) endif () createPackage() diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index d4e91a4f1..ae789a143 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -199,7 +199,7 @@ macro(createPackage) INSTALL(CODE "LIST(APPEND DEP_FOLDERS \${PY_PARENT})") install(CODE [[ file(GET_RUNTIME_DEPENDENCIES - EXECUTABLES $ + EXECUTABLES $ $ $ RESOLVED_DEPENDENCIES_VAR _r_deps UNRESOLVED_DEPENDENCIES_VAR _u_deps CONFLICTING_DEPENDENCIES_PREFIX _c_deps @@ -208,10 +208,10 @@ macro(createPackage) ) if(_u_deps) - message(WARNING "There were unresolved dependencies for binary $: \"${_u_deps}\"!") + message(WARNING "There were unresolved dependencies for binary: \"${_u_deps}\"!") endif() if(_c_deps_FILENAMES) - message(WARNING "There were conflicting dependencies for library $: \"${_c_deps}\"!") + message(WARNING "There were conflicting dependencies for library: \"${_c_deps}\"!") endif() foreach(_file ${_r_deps})