File: unittest_static_assert.cmake

package info (click to toggle)
cccl 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,248 kB
  • sloc: cpp: 264,457; python: 6,421; sh: 2,762; perl: 460; makefile: 114; xml: 13
file content (10 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
# Disable unreachable code warnings.
# This test unconditionally throws in some places, the compiler will detect that
# control flow will never reach some instructions. This is intentional.
target_link_libraries(${test_target} PRIVATE thrust.silence_unreachable_code_warnings)

# The machinery behind this test is not compatible with NVC++.
# See https://github.com/NVIDIA/thrust/issues/1397
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
  set_tests_properties(${test_target} PROPERTIES DISABLED True)
endif()