Browse Source

CMP0200: "Fix" updated test for policy warning

Commit 763aa084b0 (CMP0200: Fix crash in configuration selection policy
warning, 2025-09-10) fixed a bug in the CMP0200 policy warning and also
improved the test to exercise the problematic code, but did not properly
update the expected output. Add the second warning to the expected
output.
Matthew Woehlke 2 months ago
parent
commit
a900e5ec9f
1 changed files with 12 additions and 0 deletions
  1. 12 0
      Tests/RunCMake/GeneratorExpression/CMP0200-WARN-stderr.txt

+ 12 - 0
Tests/RunCMake/GeneratorExpression/CMP0200-WARN-stderr.txt

@@ -9,3 +9,15 @@ CMake Warning \(dev\) in CMakeLists\.txt:
   policy\.
 
 This warning is for project developers\.  Use -Wno-dev to suppress it\.
+
+CMake Warning \(dev\) in CMakeLists\.txt:
+  Policy CMP0200 is not set: Location and configuration selection for
+  imported targets is more consistent\.  Run "cmake --help-policy CMP0200" for
+  policy details\.  Use the cmake_policy command to set the policy and
+  suppress this warning\.
+
+  Configuration selection for imported target "lib_test2" selected
+  configuration "\(none\)", but would select configuration "[^"]*" under the
+  NEW policy\.
+
+This warning is for project developers\.  Use -Wno-dev to suppress it\.