summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-10-03 15:49:18 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-10-10 14:26:40 (GMT)
commitb56f2db87aebd34bfaf24439d56632aa3f3019f8 (patch)
treea0d473b712c59d6e4a9beb9f84bdea764db4e4b6 /Tests/RunCMake/add_subdirectory/CMP0082-NestedSub
parentfc8955e8891c645cd369a3cc8b607a14a8ed5bd7 (diff)
downloadCMake-b56f2db87aebd34bfaf24439d56632aa3f3019f8.zip
CMake-b56f2db87aebd34bfaf24439d56632aa3f3019f8.tar.gz
CMake-b56f2db87aebd34bfaf24439d56632aa3f3019f8.tar.bz2
Testing: Add test for CMP0082
Diffstat (limited to 'Tests/RunCMake/add_subdirectory/CMP0082-NestedSub')
-rw-r--r--Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/CMakeLists.txt2
-rw-r--r--Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/sub/CMakeLists.txt1
2 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/CMakeLists.txt b/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/CMakeLists.txt
new file mode 100644
index 0000000..52a0665
--- /dev/null
+++ b/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory(sub)
+install(CODE "message(STATUS \"top\")")
diff --git a/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/sub/CMakeLists.txt b/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/sub/CMakeLists.txt
new file mode 100644
index 0000000..91a8936
--- /dev/null
+++ b/Tests/RunCMake/add_subdirectory/CMP0082-NestedSub/sub/CMakeLists.txt
@@ -0,0 +1 @@
+install(CODE "message(STATUS \"sub\")")