summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/CMP0104/CMP0104-Common.cmake
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:21 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-08 09:20:21 +0900
commit2cae257828342914a3573b14d86b7abc5a77fe3d (patch)
treed5b38c9a5891bfc428274d3fa993301ff13178c6 /Tests/RunCMake/CMP0104/CMP0104-Common.cmake
parent50689498d1ad916f12dc24a034014fe5e4cb9904 (diff)
downloadcmake-2cae257828342914a3573b14d86b7abc5a77fe3d.tar.gz
cmake-2cae257828342914a3573b14d86b7abc5a77fe3d.tar.bz2
cmake-2cae257828342914a3573b14d86b7abc5a77fe3d.zip
Imported Upstream version 3.18.5upstream/3.18.5
Diffstat (limited to 'Tests/RunCMake/CMP0104/CMP0104-Common.cmake')
-rw-r--r--Tests/RunCMake/CMP0104/CMP0104-Common.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0104/CMP0104-Common.cmake b/Tests/RunCMake/CMP0104/CMP0104-Common.cmake
index b3568f113..ca4c1aa22 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)