mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
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.
This commit is contained in:
@@ -89,7 +89,7 @@ endif()
|
|||||||
# compile a cu file into an object file
|
# compile a cu file into an object file
|
||||||
if(NOT CMAKE_CUDA_COMPILE_OBJECT)
|
if(NOT CMAKE_CUDA_COMPILE_OBJECT)
|
||||||
set(CMAKE_CUDA_COMPILE_OBJECT
|
set(CMAKE_CUDA_COMPILE_OBJECT
|
||||||
"<CMAKE_CUDA_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
"<CMAKE_CUDA_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -x cu -c <SOURCE>")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# compile a cu file into an executable
|
# compile a cu file into an executable
|
||||||
|
|||||||
Reference in New Issue
Block a user