Explicit disable per-target CUDA_ARCHITECTURES props.
Setting CMP0104 to OLD wasn't enough to suppress the errors about
this property empty being uninitialized. Setting the prop to OFF
explicitly silences the errors.
MODIFY
cmake/ThrustBuildTargetList.cmake
cmake/ThrustBuildTargetList.cmake
@@ -79,6 +79,15 @@ function(thrust_set_target_properties target_name host device dialect prefix)
RUNTIME_OUTPUT_DIRECTORY "${THRUST_EXECUTABLE_OUTPUT_DIR}"
)
+ # CMake still emits errors about empty CUDA_ARCHITECTURES when CMP0104
+ # is set to OLD. This suppresses the errors for good.
+ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
+ set_target_properties(${target_name}
+ PROPERTIES
+ CUDA_ARCHITECTURES OFF
+ )
+ endif()
+
if ("CUDA" STREQUAL "${device}" AND
"Feta" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
set_target_properties(${target_name} PROPERTIES

MODIFY
dependencies/cub
dependencies/cub
-Subproject commit f51da34666bbbe085f6a9ac18ab2a78459840347
+Subproject commit 2749cb0c7bc5a72c806d7ca0b8e4d702dbe017e5

Explicit disable per-target CUDA_ARCHITECTURES props.

Setting CMP0104 to OLD wasn't enough to suppress the errors about
this property empty being uninitialized. Setting the prop to OFF
explicitly silences the errors.