summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FPHSA/NameMismatch-stderr.txt
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-12-09 13:19:35 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-01-14 22:25:49 (GMT)
commitee4673c1ae1e4a1aa4687412717567c2ffbb501b (patch)
treed8fc21374a252ecd7ad9ad92e1921c42897b95a0 /Tests/RunCMake/FPHSA/NameMismatch-stderr.txt
parent93526fd91319d952e60760c735a9bb191bc4ede3 (diff)
downloadCMake-ee4673c1ae1e4a1aa4687412717567c2ffbb501b.zip
CMake-ee4673c1ae1e4a1aa4687412717567c2ffbb501b.tar.gz
CMake-ee4673c1ae1e4a1aa4687412717567c2ffbb501b.tar.bz2
FPHSA: detect package name mismatches
The `FPHSA_NAME_MISMATCHED` variable may be set if this is intentional (but should be cleared after the call to not affect other FPHSA calls). It may also be passed via the `NAME_MISMATCHED` option for new-signature FPHSA calls.
Diffstat (limited to 'Tests/RunCMake/FPHSA/NameMismatch-stderr.txt')
-rw-r--r--Tests/RunCMake/FPHSA/NameMismatch-stderr.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Tests/RunCMake/FPHSA/NameMismatch-stderr.txt b/Tests/RunCMake/FPHSA/NameMismatch-stderr.txt
new file mode 100644
index 0000000..722b50b
--- /dev/null
+++ b/Tests/RunCMake/FPHSA/NameMismatch-stderr.txt
@@ -0,0 +1,23 @@
+CMake Warning \(dev\) at .*/Modules/FindPackageHandleStandardArgs.cmake:[0-9]+ \(message\):
+ The package name passed to `find_package_handle_standard_args`
+ \(NAMEMISMATCH\) does not match the name of the calling package
+ \(NameMismatch\). This can lead to problems in calling code that expects
+ `find_package` result variables \(e.g., `_FOUND`\) to follow a certain
+ pattern.
+Call Stack \(most recent call first\):
+ FindNameMismatch.cmake:3 \(find_package_handle_standard_args\)
+ NameMismatch.cmake:3 \(find_package\)
+ CMakeLists.txt:3 \(include\)
+This warning is for project developers. Use -Wno-dev to suppress it.
+
+CMake Warning \(dev\) at .*/Modules/FindPackageHandleStandardArgs.cmake:[0-9]+ \(message\):
+ The package name passed to `find_package_handle_standard_args`
+ \(NAMEMISMATCH\) does not match the name of the calling package
+ \(NameMismatchOld\). This can lead to problems in calling code that expects
+ `find_package` result variables \(e.g., `_FOUND`\) to follow a certain
+ pattern.
+Call Stack \(most recent call first\):
+ FindNameMismatchOld.cmake:3 \(find_package_handle_standard_args\)
+ NameMismatch.cmake:4 \(find_package\)
+ CMakeLists.txt:3 \(include\)
+This warning is for project developers. Use -Wno-dev to suppress it.