diff options
author | Raul Tambre <raul@tambre.ee> | 2021-11-06 10:54:07 (GMT) |
---|---|---|
committer | Raul Tambre <raul@tambre.ee> | 2021-11-08 19:26:00 (GMT) |
commit | 4707ecbe6fed1e135785f9fe9734a4c66807dd77 (patch) | |
tree | 1519f6d6bec23dcd2518284d030876e2c073f582 /Tests/RunCMake/target_link_options/RunCMakeTest.cmake | |
parent | 15fde4c420e0fa469077fad020b9fdc071796f70 (diff) | |
download | CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.zip CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.tar.gz CMake-4707ecbe6fed1e135785f9fe9734a4c66807dd77.tar.bz2 |
CUDA: Support CMP0105 on Clang
Add link flags during the "device compile" step.
Enabled the relevant tests. The disable reasons regarding separable compilation
were outdated and the actual failure case was device link flags support.
Diffstat (limited to 'Tests/RunCMake/target_link_options/RunCMakeTest.cmake')
-rw-r--r-- | Tests/RunCMake/target_link_options/RunCMakeTest.cmake | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Tests/RunCMake/target_link_options/RunCMakeTest.cmake b/Tests/RunCMake/target_link_options/RunCMakeTest.cmake index a707383..1a29ecf 100644 --- a/Tests/RunCMake/target_link_options/RunCMakeTest.cmake +++ b/Tests/RunCMake/target_link_options/RunCMakeTest.cmake @@ -53,16 +53,13 @@ if (NOT CMAKE_C_COMPILER_ID STREQUAL "Intel") run_cmake_target(genex_DEVICE_LINK interface LinkOptions_shared_interface --config Release) run_cmake_target(genex_DEVICE_LINK private LinkOptions_private --config Release) if (CMake_TEST_CUDA) - # Separable compilation is only supported on NVCC. - if(NOT CMake_TEST_CUDA STREQUAL "Clang") - run_cmake_target(genex_DEVICE_LINK CMP0105_UNSET LinkOptions_CMP0105_UNSET --config Release) - run_cmake_target(genex_DEVICE_LINK CMP0105_OLD LinkOptions_CMP0105_OLD --config Release) - run_cmake_target(genex_DEVICE_LINK CMP0105_NEW LinkOptions_CMP0105_NEW --config Release) - run_cmake_target(genex_DEVICE_LINK device LinkOptions_device --config Release) - - if (RunCMake_GENERATOR MATCHES "(Ninja|Unix Makefiles)") - run_cmake_target(genex_DEVICE_LINK host_link_options LinkOptions_host_link_options --config Release ${VERBOSE}) - endif() + run_cmake_target(genex_DEVICE_LINK CMP0105_UNSET LinkOptions_CMP0105_UNSET --config Release) + run_cmake_target(genex_DEVICE_LINK CMP0105_OLD LinkOptions_CMP0105_OLD --config Release) + run_cmake_target(genex_DEVICE_LINK CMP0105_NEW LinkOptions_CMP0105_NEW --config Release) + run_cmake_target(genex_DEVICE_LINK device LinkOptions_device --config Release) + + if (RunCMake_GENERATOR MATCHES "(Ninja|Unix Makefiles)") + run_cmake_target(genex_DEVICE_LINK host_link_options LinkOptions_host_link_options --config Release ${VERBOSE}) endif() run_cmake_target(genex_DEVICE_LINK no_device LinkOptions_no_device --config Release) |