Commit 63a4c0af authored by Christoph Grüninger's avatar Christoph Grüninger Committed by Brad King
Browse files

FindPkgConfig: Stop processing when REQUIRED package not found (#14381)

Make the behavior similar to find_package.
parent 8a306d68
......@@ -337,7 +337,7 @@ macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cma
# 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 ()
# when we are here, we checked whether requested modules
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment