Skip to content

Commit

Permalink
cmake: fix FindO2GPU.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
aphecetche committed Nov 29, 2023
1 parent e6bf9e6 commit 537d966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dependencies/FindO2GPU.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ function(set_target_hip_arch target)
endfunction()

# Detect and enable CUDA
STRING(REGEX REPLACE "\-std=[^ ]*" "" O2_GPU_CMAKE_CXX_FLAGS_NOSTD ${CMAKE_CXX_FLAGS}) # Need to strip c++17 imposed by alidist defaults
STRING(REGEX REPLACE "\-std=[^ ]*" "" O2_GPU_CMAKE_CXX_FLAGS_NOSTD "${CMAKE_CXX_FLAGS}") # Need to strip c++17 imposed by alidist defaults

if(ENABLE_CUDA)
set(CMAKE_CUDA_STANDARD 17)
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
Expand Down

0 comments on commit 537d966

Please sign in to comment.