Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Brad King
CMake
Commits
63a4c0af
Commit
63a4c0af
authored
Mar 22, 2014
by
Christoph Grüninger
Committed by
Brad King
Mar 24, 2014
Browse files
FindPkgConfig: Stop processing when REQUIRED package not found (#14381)
Make the behavior similar to find_package.
parent
8a306d68
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/FindPkgConfig.cmake
View file @
63a4c0af
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment