summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-28 12:11:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-28 12:11:18 (GMT)
commit75647fc53dace97d4dd03f8d5a1abfb995b4558d (patch)
treed65b243f9e5a9370808decae929d4af0a4f28722 /Tests
parent859f50a4ed8eedb0e0944e756ff807003cea43da (diff)
parent27fd172d8dcd42f5c9dc362cc3572f4f4d8132cd (diff)
downloadCMake-75647fc53dace97d4dd03f8d5a1abfb995b4558d.zip
CMake-75647fc53dace97d4dd03f8d5a1abfb995b4558d.tar.gz
CMake-75647fc53dace97d4dd03f8d5a1abfb995b4558d.tar.bz2
Merge topic 'verify-interface-header-sets-add-compile-definitions' into release-3.24
27fd172d8d VERIFY_INTERFACE_HEADER_SETS: Finalize compile info for verify targets 626e641a19 cmTarget: Factor out FinalizeTargetCompileInfo() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7516
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);