File: unittest_static_assert.cmake

package info (click to toggle)
libthrust 1.17.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,900 kB
  • sloc: ansic: 29,519; cpp: 23,989; python: 1,421; sh: 811; perl: 460; makefile: 112
file content (10 lines) | stat: -rw-r--r-- 514 bytes parent folder | download
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 ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
  set_tests_properties(${test_target} PROPERTIES DISABLED True)
endif()