From ff921d87aba87cd09e99aa0be9224c7adcc6618a Mon Sep 17 00:00:00 2001 From: Matthew Woehlke Date: Fri, 17 Jul 2026 16:41:05 -0400 Subject: [PATCH] Tests: Fix wrong check in CPS import test The CPS import test checks that an imported target is non-global twice, and never properly checks that a globally imported target is actually global. This looks like an obvious failure to update a check after copy/pasting an existing check; fix it. --- Tests/FindPackageCpsTest/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FindPackageCpsTest/CMakeLists.txt b/Tests/FindPackageCpsTest/CMakeLists.txt index 3d6f01a729..b31de130fc 100644 --- a/Tests/FindPackageCpsTest/CMakeLists.txt +++ b/Tests/FindPackageCpsTest/CMakeLists.txt @@ -192,7 +192,7 @@ if(NOT Global_FOUND) elseif(NOT TARGET Global::Target) message(SEND_ERROR "Global::Target missing !") else() - expect_global(Foo::Empty FALSE) + expect_global(Global::Target TRUE) endif() ###############################################################################