Skip to content

Commit

Permalink
use parentscope to propagate CMAKE_CUDA_FLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Feb 13, 2025
1 parent 13fe66c commit b8fcc6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rapids-cmake/cuda/set_architectures.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function(rapids_cuda_set_architectures mode)
# for RAPIDS architectures.
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION
VERSION_GREATER_EQUAL 12.8.0)
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
string(APPEND CMAKE_CUDA_FLAGS " -Wno-deprecated-gpu-targets")
endif()
endif()

Expand All @@ -110,5 +110,6 @@ function(rapids_cuda_set_architectures mode)

# Set as a local variable to maintain comp
set(CMAKE_CUDA_ARCHITECTURES ${CMAKE_CUDA_ARCHITECTURES} PARENT_SCOPE)
set(CMAKE_CUDA_FLAGS ${CMAKE_CUDA_FLAGS} PARENT_SCOPE)

endfunction()

0 comments on commit b8fcc6f

Please sign in to comment.