diff --git a/cub/test/CMakeLists.txt b/cub/test/CMakeLists.txt index 982938a8539..c60289502d3 100644 --- a/cub/test/CMakeLists.txt +++ b/cub/test/CMakeLists.txt @@ -249,6 +249,9 @@ function( endif() endif() # Not catch2 test + # Disable build caching for compile tests + set_tests_properties(${test_target} PROPERTIES ENVIRONMENT SCCACHE_NO_CACHE=1) + # Ensure that we test with assertions enabled target_compile_definitions(${test_target} PRIVATE CCCL_ENABLE_ASSERTIONS) endfunction()