summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-18 14:40:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-18 14:41:01 (GMT)
commitbffdc2e2e1697ffc0ad1fa1f16e9f1092e6a6489 (patch)
treee2aed7331a0c196865fa8c13270c15053edb5a6d /Tests/CudaOnly
parent2868019b2f93f2eb50de901d8a58ceb9b5790ae5 (diff)
parent46abfedb8395f7e72281bd8eb7bd4f118c311140 (diff)
downloadCMake-bffdc2e2e1697ffc0ad1fa1f16e9f1092e6a6489.zip
CMake-bffdc2e2e1697ffc0ad1fa1f16e9f1092e6a6489.tar.gz
CMake-bffdc2e2e1697ffc0ad1fa1f16e9f1092e6a6489.tar.bz2
Merge topic 'msvc_cuda_8_explicitly_specify_cuda_language'
46abfedb CUDA: MSVC will now state files are cuda files when needed Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1658
Diffstat (limited to 'Tests/CudaOnly')
-rw-r--r--Tests/CudaOnly/WithDefs/CMakeLists.txt10
-rw-r--r--Tests/CudaOnly/WithDefs/main_for_vs.cu1
2 files changed, 2 insertions, 9 deletions
diff --git a/Tests/CudaOnly/WithDefs/CMakeLists.txt b/Tests/CudaOnly/WithDefs/CMakeLists.txt
index ffe4859..926d9ed 100644
--- a/Tests/CudaOnly/WithDefs/CMakeLists.txt
+++ b/Tests/CudaOnly/WithDefs/CMakeLists.txt
@@ -21,14 +21,8 @@ set(release_compile_defs DEFREL)
#this verifies we can pass things such as '_','(' to nvcc
add_definitions("-DPACKED_DEFINE=__attribute__((packed))")
-if(CMAKE_GENERATOR MATCHES "Visual Studio")
- # CUDA MSBuild rules do not pass '-x cu' to nvcc
- set(main main_for_vs.cu)
-else()
- set(main main.notcu)
- set_source_files_properties(main.notcu PROPERTIES LANGUAGE CUDA)
-endif()
-add_executable(CudaOnlyWithDefs ${main})
+add_executable(CudaOnlyWithDefs main.notcu)
+set_source_files_properties(main.notcu PROPERTIES LANGUAGE CUDA)
target_compile_options(CudaOnlyWithDefs
PRIVATE
diff --git a/Tests/CudaOnly/WithDefs/main_for_vs.cu b/Tests/CudaOnly/WithDefs/main_for_vs.cu
deleted file mode 100644
index 56078e7..0000000
--- a/Tests/CudaOnly/WithDefs/main_for_vs.cu
+++ /dev/null
@@ -1 +0,0 @@
-#include "main.notcu"