diff options
author | Brad King <brad.king@kitware.com> | 2020-10-27 12:20:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-10-27 12:20:55 (GMT) |
commit | c300355aab387be11c2b7487ea2505e1d81c1831 (patch) | |
tree | 5588bae5c339d4fec879392def764fc58b37c932 /Tests | |
parent | dbb957a5dc0a6d2af843079a37f7be9be87221b1 (diff) | |
parent | dd77dec18d66a2e20480d9bf2ab06231765720a4 (diff) | |
download | CMake-c300355aab387be11c2b7487ea2505e1d81c1831.zip CMake-c300355aab387be11c2b7487ea2505e1d81c1831.tar.gz CMake-c300355aab387be11c2b7487ea2505e1d81c1831.tar.bz2 |
Merge topic 'cuda_vs_skip_computation'
dd77dec18d VS: Don't compute CUDA options unless necessary
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5422
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CMP0104/CMP0104-Common.cmake | 4 | ||||
-rw-r--r-- | Tests/RunCMake/CMP0104/main.cxx | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0104/CMP0104-Common.cmake b/Tests/RunCMake/CMP0104/CMP0104-Common.cmake index b3568f1..ca4c1aa2 100644 --- a/Tests/RunCMake/CMP0104/CMP0104-Common.cmake +++ b/Tests/RunCMake/CMP0104/CMP0104-Common.cmake @@ -1,2 +1,6 @@ +# Make sure CMP0104 isn't issued for CXX targets created prior to enabling CUDA. See #21341. +enable_language(CXX) +add_library(cxx main.cxx) + enable_language(CUDA) add_library(cuda main.cu) diff --git a/Tests/RunCMake/CMP0104/main.cxx b/Tests/RunCMake/CMP0104/main.cxx new file mode 100644 index 0000000..5047a34 --- /dev/null +++ b/Tests/RunCMake/CMP0104/main.cxx @@ -0,0 +1,3 @@ +int main() +{ +} |