3 include(CheckSourceRuns)
5 set(CUDA 1) # test that this is tolerated
7 check_source_runs(CUDA "int main() {return 2;}" SHOULD_FAIL)
9 message(SEND_ERROR "CUDA check_source_runs succeeded, but should have failed.")
12 check_source_runs(CUDA
15 __device__ __host__ void fake_function();
22 message(SEND_ERROR "CUDA check_source_runs failed for valid CUDA executable.")