Skip to content

Commit

Permalink
fix: try to correct resolving path
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock committed Nov 28, 2024
1 parent 12f78af commit 124c04a
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions cmake/install/InstallDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,12 @@ function(install_dependency)
if(_r_deps)
message(STATUS "Resolved dependencies: ${_r_deps}")
foreach(_file ${_r_deps})
if(EXISTS "${_file}")
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
else()
message(WARNING "Found a non-existent dependency: ${_file}")
endif()
file(TO_CMAKE_PATH "${_file}" _file)
message(STATUS "From ${_file}")
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
endforeach()
endif()

Expand All @@ -256,14 +254,12 @@ function(install_dependency)
set(_c_file_list ${_c_deps_${_filename}})
message(STATUS "conflict ${_filename} list ${_c_file_list}")
foreach(_file ${_c_file_list})
if(EXISTS "${_file}")
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
else()
message(WARNING "Found a non-existent conflict dependency: ${_file}")
endif()
file(TO_CMAKE_PATH "${_file}" _file)
message(STATUS "From ${_file}")
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
endforeach()
endforeach()
endif()
Expand Down

0 comments on commit 124c04a

Please # to comment.