mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'link-stubs-transitively'
2c6ec6de15Link to transitive dependencies on stub libraries only on some linkersdd4a6dff92Link explicitly to private transitive dependencies on stub libraries5f1bbdb3b3Tests: Enable RunCMake.RuntimePath test on more platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9050
This commit is contained in:
@@ -1100,7 +1100,10 @@ if(CUDAToolkit_FOUND)
|
||||
if(CUDA_${lib_name}_LIBRARY MATCHES "/stubs/" AND NOT WIN32)
|
||||
# Use a SHARED library with IMPORTED_IMPLIB, but not IMPORTED_LOCATION,
|
||||
# to indicate that the stub is for linkers but not dynamic loaders.
|
||||
# It will not contribute any RPATH entry.
|
||||
# It will not contribute any RPATH entry. When encountered as
|
||||
# a private transitive dependency of another shared library,
|
||||
# it will be passed explicitly to linkers so they can find it
|
||||
# even when the runtime library file does not exist on disk.
|
||||
set(CUDA_IMPORT_PROPERTY IMPORTED_IMPLIB)
|
||||
set(CUDA_IMPORT_TYPE SHARED)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user