mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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.
This commit is contained in:
@@ -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()
|
||||
|
||||
###############################################################################
|
||||
|
||||
Reference in New Issue
Block a user