Skip to content

Commit

Permalink
COMP: do not set C++ standard manually, use cmake property
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rit committed Jul 16, 2021
1 parent e455b5d commit f66e98a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions cmake/FindCUDA_wrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS}
-gencode arch=compute_35,code=compute_35
)

if(NOT "-std=c++${CMAKE_CXX_STANDARD}" IN_LIST CUDA_NVCC_FLAGS)
list(APPEND CUDA_NVCC_FLAGS "-std=c++${CMAKE_CXX_STANDARD}")
endif()

if(CUDA_FOUND)
try_run(RUN_RESULT_VAR COMPILE_RESULT_VAR
${CMAKE_BINARY_DIR}
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,5 @@ target_link_libraries(RTK LINK_PUBLIC lpsolve55)

if (RTK_USE_CUDA)
target_link_libraries( RTK LINK_PUBLIC ITKCudaCommon ${CUDA_LIBRARIES} ${CUDA_CUDA_LIBRARY} ${CUDA_cufft_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} )
set_property(TARGET RTK PROPERTY CUDA_STANDARD ${CMAKE_CXX_STANDARD})
endif ()

0 comments on commit f66e98a

Please sign in to comment.