From bf326ebb7694d2e86fbcfef4cb827c70531c3255 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Tue, 30 Aug 2016 12:00:44 -0400 Subject: CUDA: Explicitly state all source files are cuda sources. This way you can mark a .C/.CPP files as a cuda source file and have nvcc build it as a cuda file. --- Modules/CMakeCUDAInformation.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CMakeCUDAInformation.cmake b/Modules/CMakeCUDAInformation.cmake index 3436681..491c35b 100644 --- a/Modules/CMakeCUDAInformation.cmake +++ b/Modules/CMakeCUDAInformation.cmake @@ -89,7 +89,7 @@ endif() # compile a cu file into an object file if(NOT CMAKE_CUDA_COMPILE_OBJECT) set(CMAKE_CUDA_COMPILE_OBJECT - " -o -c ") + " -o -x cu -c ") endif() # compile a cu file into an executable -- cgit v0.12