summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-25 18:30:57 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-29 13:35:20 (GMT)
commit82507e80eb9060c5e1a3d60c46d42630e0173030 (patch)
treeb66c30c8acae38e894d681232b60ebce8bd628f4 /Tests
parent721f1b608c7c0fffa1b217ff706080ab75af3adc (diff)
downloadCMake-82507e80eb9060c5e1a3d60c46d42630e0173030.zip
CMake-82507e80eb9060c5e1a3d60c46d42630e0173030.tar.gz
CMake-82507e80eb9060c5e1a3d60c46d42630e0173030.tar.bz2
Tests/RunCMake/property_init: test 'always' properties
All targets get these targets initialized.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/property_init/Always.cmake15
-rw-r--r--Tests/RunCMake/property_init/RunCMakeTest.cmake2
2 files changed, 17 insertions, 0 deletions
diff --git a/Tests/RunCMake/property_init/Always.cmake b/Tests/RunCMake/property_init/Always.cmake
new file mode 100644
index 0000000..db23563
--- /dev/null
+++ b/Tests/RunCMake/property_init/Always.cmake
@@ -0,0 +1,15 @@
+set(properties
+ # property expected alias
+ # Test a property which should never be initialized.
+ "notset" "<UNSET>" "<SAME>"
+
+ # Build graph properties
+ "VERIFY_INTERFACE_HEADER_SETS" "TRUE" "<SAME>"
+
+ # Metadata
+ "FOLDER" "folder" "<SAME>"
+ )
+
+prepare_target_types(always ${all_target_types})
+
+run_property_tests(always properties)
diff --git a/Tests/RunCMake/property_init/RunCMakeTest.cmake b/Tests/RunCMake/property_init/RunCMakeTest.cmake
index 837e952..fb3579d 100644
--- a/Tests/RunCMake/property_init/RunCMakeTest.cmake
+++ b/Tests/RunCMake/property_init/RunCMakeTest.cmake
@@ -1 +1,3 @@
include(RunCMake)
+
+run_cmake(Always)