summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake')
-rw-r--r--Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake b/Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake
new file mode 100644
index 0000000000..6dd042b094
--- /dev/null
+++ b/Tests/RunCMake/VSSolution/CMP0143-NEW-check.cmake
@@ -0,0 +1,6 @@
+getProjectNames(projects)
+
+list(FIND projects "CMakePredefinedTargets" found)
+ if(found EQUAL "-1")
+ error("CMakePredefinedTargets should be defined when CMP0143 is NEW!")
+endif()