summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-07-27 16:08:11 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2022-07-27 16:25:15 (GMT)
commit27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd (patch)
treeccd623ca70652d074573188b4943d8a13757ea62 /Tests
parent626e641a19c2eadd0f204e87237748afcbe3b2b5 (diff)
downloadCMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.zip
CMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.tar.gz
CMake-27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd.tar.bz2
VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets
Fixes: #23732
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake2
-rw-r--r--Tests/RunCMake/VerifyHeaderSets/a.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake
index 82ed935..a601491 100644
--- a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake
+++ b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets.cmake
@@ -1,5 +1,7 @@
enable_language(C CXX)
+add_compile_definitions(TEST_ADD_COMPILE_DEFINITIONS)
+
set_property(SOURCE a.h PROPERTY LANGUAGE C)
set_property(SOURCE dir/c.h PROPERTY LANGUAGE C)
set_property(SOURCE dir/cxx.h PROPERTY LANGUAGE CXX)
diff --git a/Tests/RunCMake/VerifyHeaderSets/a.h b/Tests/RunCMake/VerifyHeaderSets/a.h
index 8b17182..898da49 100644
--- a/Tests/RunCMake/VerifyHeaderSets/a.h
+++ b/Tests/RunCMake/VerifyHeaderSets/a.h
@@ -2,4 +2,8 @@
# error "TEST_A_H defined"
#endif
+#ifndef TEST_ADD_COMPILE_DEFINITIONS
+# error "TEST_ADD_COMPILE_DEFINITIONS not defined"
+#endif
+
extern void a_h(void);