summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorDaniel Hannon <hello111f@gmail.com>2022-10-07 18:00:28 (GMT)
committerDaniel Hannon <hello111f@gmail.com>2022-10-07 18:00:28 (GMT)
commit6942234bf5847a9bba7841727f4f35f80af6e630 (patch)
treeab7d2d8ba6edd5ce846a6ef6a6fdd68d9ba50a54 /Tests
parent269652a81468637c03bbdc4ef56e0090ccae78bb (diff)
downloadCMake-6942234bf5847a9bba7841727f4f35f80af6e630.zip
CMake-6942234bf5847a9bba7841727f4f35f80af6e630.tar.gz
CMake-6942234bf5847a9bba7841727f4f35f80af6e630.tar.bz2
VERIFY_INTERFACE_HEADER_SETS: Add IWYU pragma: associated to verification file
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets-check.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets-check.cmake b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets-check.cmake
index 100f482..4d5508d 100644
--- a/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets-check.cmake
+++ b/Tests/RunCMake/VerifyHeaderSets/VerifyHeaderSets-check.cmake
@@ -9,7 +9,7 @@ function(check_file target filename)
if(filename MATCHES "^(.*)(\\.[a-z]+)$")
set(header_filename "${CMAKE_MATCH_1}")
endif()
- set(expected_contents "#include <${header_filename}>\n")
+ set(expected_contents "#include <${header_filename}> // IWYU pragma: associated\n")
file(READ "${full_filename}" actual_contents)
if(NOT actual_contents STREQUAL expected_contents)