Skip to content

Commit

Permalink
conditionally do static assertion tests if code generation is enabled…
Browse files Browse the repository at this point in the history
… or not
  • Loading branch information
caugonnet committed Nov 7, 2024
1 parent 41b538c commit 3542291
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cudax/test/stf/static_error_checks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
set(static_assert_tests
gnu_launch.cpp
gnu_parallel_for.cpp
static.cu
task_prototype.cu
stream_task_prototype.cu
graph_task_prototype.cu
)

set(static_assert_tests_codegen
gnu_launch.cpp
gnu_parallel_for.cpp
)

## cudax_add_stf_static_assert_test
#
# Adds an EXCLUDE_FROM_ALL build target for `source` and a ctest that
Expand Down Expand Up @@ -50,4 +53,10 @@ foreach(cn_target IN LISTS cudax_TARGETS)
foreach(source IN LISTS static_assert_tests)
cudax_stf_add_static_assert_test(test_target "${source}" ${cn_target})
endforeach()

if (cudax_ENABLE_CUDASTF_CODE_GENERATION)
foreach(source IN LISTS static_assert_tests_codegen)
cudax_stf_add_static_assert_test(test_target "${source}" ${cn_target})
endforeach()
endif()
endforeach()

0 comments on commit 3542291

Please sign in to comment.