summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/FindPkgConfig
diff options
context:
space:
mode:
authorAdam Badura <adam.badura@nokia.com>2021-05-05 05:17:27 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-04 12:33:27 (GMT)
commit6f14205e0885853184d482f901d62fa5c10ac4f9 (patch)
tree39e9ec271c6387a8bb617bc709d41fed9fd29b38 /Tests/RunCMake/FindPkgConfig
parent07d639072800dcd189a9c461c4d1e0c04807e18f (diff)
downloadCMake-6f14205e0885853184d482f901d62fa5c10ac4f9.zip
CMake-6f14205e0885853184d482f901d62fa5c10ac4f9.tar.gz
CMake-6f14205e0885853184d482f901d62fa5c10ac4f9.tar.bz2
FindPkgConfig: Always create the imported target
Fixes: #22180
Diffstat (limited to 'Tests/RunCMake/FindPkgConfig')
-rw-r--r--Tests/RunCMake/FindPkgConfig/FindPkgConfig_empty_target.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/FindPkgConfig/FindPkgConfig_empty_target.cmake b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_empty_target.cmake
index fd774b9..cb3dd69 100644
--- a/Tests/RunCMake/FindPkgConfig/FindPkgConfig_empty_target.cmake
+++ b/Tests/RunCMake/FindPkgConfig/FindPkgConfig_empty_target.cmake
@@ -11,3 +11,7 @@ pkg_search_module(Empty REQUIRED empty IMPORTED_TARGET)
if(NOT Empty_MODULE_NAME STREQUAL "empty")
message(FATAL_ERROR "Wrong value for Empty_MODULE_NAME. Expected: empty, got: ${Empty_MODULE_NAME}")
endif()
+
+if(NOT TARGET PkgConfig::Empty)
+ message(FATAL_ERROR "PkgConfig::Empty target not created")
+endif()