mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
FindPkgConfig: Stop processing when REQUIRED package not found (#14381)
Make the behavior similar to find_package.
This commit is contained in:
1 parent
8a306d68e0
commit
63a4c0af31
1 file changed
+1
-1
@@ -337,7 +337,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
|
||||
if(_pkg_check_modules_failed)
|
||||
# fail when requested
|
||||
if (${_is_required})
|
||||
message(SEND_ERROR "A required package was not found")
|
||||
message(FATAL_ERROR "A required package was not found")
|
||||
endif ()
|
||||
else()
|
||||
# when we are here, we checked whether requested modules
|
||||
|
||||
Reference in new issue
Block a user