Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Add options for debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed Aug 18, 2021
1 parent 4201a91 commit e24e68f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function(cub_add_test target_name_var test_name test_src cub_target)
target_link_libraries(${test_target} ${cub_target})
cub_clone_target_properties(${test_target} ${cub_target})
target_include_directories(${test_target} PRIVATE "${CUB_SOURCE_DIR}/test")
target_compile_options(${test_target} PRIVATE $<$<AND:$<CONFIG:Debug>,$<COMPILE_LANG_AND_ID:CUDA,NVIDIA>>:-g -G>)

# Add to the active configuration's meta target
add_dependencies(${config_meta_target} ${test_target})
Expand Down

0 comments on commit e24e68f

Please sign in to comment.