Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions cmake/install/InstallDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ function(install_dependency)
install(
CODE [[

if(NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(file_install_param FOLLOW_SYMLINK_CHAIN)
endif()

set(library_target "")
set(executable_target "")
set(module_target "")
Expand Down Expand Up @@ -236,7 +240,7 @@ function(install_dependency)
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
TYPE SHARED_LIBRARY ${file_install_param} FILES "${_file}")
endforeach()
endif()

Expand All @@ -259,7 +263,7 @@ function(install_dependency)
file(
INSTALL
DESTINATION "${arg_DEPENDS_DESTINATION}"
TYPE SHARED_LIBRARY FOLLOW_SYMLINK_CHAIN FILES "${_file}")
TYPE SHARED_LIBRARY ${file_install_param} FILES "${_file}")
endforeach()
endforeach()
endif()
Expand Down