diff options
author | Brad King <brad.king@kitware.com> | 2018-12-05 19:48:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-12-05 19:48:20 (GMT) |
commit | 45c95a3327cbb7f0b1ab61e6d656c1130f34a684 (patch) | |
tree | f640077078c7b5233708b61d49fc29b494b1966e /Tests | |
parent | 62942969062fcc9f24ca057b6983532a973cfad6 (diff) | |
parent | 7b7421346194896109a304ff088630f37ab2bd9e (diff) | |
download | CMake-45c95a3327cbb7f0b1ab61e6d656c1130f34a684.zip CMake-45c95a3327cbb7f0b1ab61e6d656c1130f34a684.tar.gz CMake-45c95a3327cbb7f0b1ab61e6d656c1130f34a684.tar.bz2 |
Merge branch 'cuda-external' into release-3.13
Merge-request: !2704
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/Languages/ExternalCUDA.cmake | 8 | ||||
-rw-r--r-- | Tests/RunCMake/Languages/RunCMakeTest.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/Languages/empty.c | 0 |
3 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/Languages/ExternalCUDA.cmake b/Tests/RunCMake/Languages/ExternalCUDA.cmake new file mode 100644 index 0000000..3afa93e --- /dev/null +++ b/Tests/RunCMake/Languages/ExternalCUDA.cmake @@ -0,0 +1,8 @@ +enable_language(C) + +add_library(ext_cuda IMPORTED STATIC) +set_property(TARGET ext_cuda PROPERTY IMPORTED_LOCATION "/does_not_exist") +set_property(TARGET ext_cuda PROPERTY IMPORTED_LINK_INTERFACE_LANGUAGES "CUDA") + +add_executable(main empty.c) +target_link_libraries(main ext_cuda) diff --git a/Tests/RunCMake/Languages/RunCMakeTest.cmake b/Tests/RunCMake/Languages/RunCMakeTest.cmake index 732baae..2a534b3 100644 --- a/Tests/RunCMake/Languages/RunCMakeTest.cmake +++ b/Tests/RunCMake/Languages/RunCMakeTest.cmake @@ -6,3 +6,5 @@ run_cmake(link-libraries-TARGET_FILE-genex) run_cmake(link-libraries-TARGET_FILE-genex-ok) run_cmake(DetermineFail) + +run_cmake(ExternalCUDA) diff --git a/Tests/RunCMake/Languages/empty.c b/Tests/RunCMake/Languages/empty.c new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Tests/RunCMake/Languages/empty.c |