diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-02-10 22:57:14 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-02-15 09:53:33 (GMT) |
commit | a2cfa2da4f53a5e9c78e6cf7332c6a308ef38af2 (patch) | |
tree | 28ddbbd9f07ad92b87fbe439c2ead74041c74f44 /Modules/Platform/Apple-NVIDIA-CUDA.cmake | |
parent | 40178f3c908795a993148553a04be25748942efc (diff) | |
download | CMake-a2cfa2da4f53a5e9c78e6cf7332c6a308ef38af2.zip CMake-a2cfa2da4f53a5e9c78e6cf7332c6a308ef38af2.tar.gz CMake-a2cfa2da4f53a5e9c78e6cf7332c6a308ef38af2.tar.bz2 |
GenEx/LINK_LIBRARY: Add features for framework support on Apple
Diffstat (limited to 'Modules/Platform/Apple-NVIDIA-CUDA.cmake')
-rw-r--r-- | Modules/Platform/Apple-NVIDIA-CUDA.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/Platform/Apple-NVIDIA-CUDA.cmake b/Modules/Platform/Apple-NVIDIA-CUDA.cmake index 35e759a..ba669e1 100644 --- a/Modules/Platform/Apple-NVIDIA-CUDA.cmake +++ b/Modules/Platform/Apple-NVIDIA-CUDA.cmake @@ -17,3 +17,17 @@ set(CMAKE_SHARED_MODULE_CREATE_CUDA_FLAGS "-shared -Wl,-headerpad_max_install_na set(CMAKE_CUDA_CREATE_SHARED_LIBRARY "<CMAKE_CUDA_HOST_LINK_LAUNCHER> <CMAKE_SHARED_LIBRARY_CUDA_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS> -o <TARGET> <SONAME_FLAG> <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>${__IMPLICIT_LINKS}") set(CMAKE_CUDA_CREATE_SHARED_MODULE "<CMAKE_CUDA_HOST_LINK_LAUNCHER> <CMAKE_SHARED_LIBRARY_CUDA_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CUDA_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>${__IMPLICIT_LINKS}") + + +# Defines host link features for frameworks +set(CMAKE_CUDA_LINK_USING_FRAMEWORK "LINKER:-framework,<LIBRARY>") +set(CMAKE_CUDA_LINK_USING_FRAMEWORK_SUPPORTED TRUE) + +set(CMAKE_CUDA_LINK_USING_NEEDED_FRAMEWORK "LINKER:-needed_framework,<LIBRARY>") +set(CMAKE_CUDA_LINK_USING_NEEDED_FRAMEWORK_SUPPORTED TRUE) + +set(CMAKE_CUDA_LINK_USING_REEXPORT_FRAMEWORK "LINKER:-reexport_framework,<LIBRARY>") +set(CMAKE_CUDA_LINK_USING_REEXPORT_FRAMEWORK_SUPPORTED TRUE) + +set(CMAKE_CUDA_LINK_USING_WEAK_FRAMEWORK "LINKER:-weak_framework,<LIBRARY>") +set(CMAKE_CUDA_LINK_USING_WEAK_FRAMEWORK_SUPPORTED TRUE) |