diff options
author | Christoph GrĂ¼ninger <foss@grueninger.de> | 2014-03-22 07:54:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-03-24 12:57:31 (GMT) |
commit | 63a4c0af31fd067a189aaa44cd4b8d17e9efd5c7 (patch) | |
tree | 388a87f56c3e01ece9c581a57689c18aa6d309d0 /Modules/FindPkgConfig.cmake | |
parent | 8a306d68e02595a8fc119cf7e2fa267a6ea64498 (diff) | |
download | CMake-63a4c0af31fd067a189aaa44cd4b8d17e9efd5c7.zip CMake-63a4c0af31fd067a189aaa44cd4b8d17e9efd5c7.tar.gz CMake-63a4c0af31fd067a189aaa44cd4b8d17e9efd5c7.tar.bz2 |
FindPkgConfig: Stop processing when REQUIRED package not found (#14381)
Make the behavior similar to find_package.
Diffstat (limited to 'Modules/FindPkgConfig.cmake')
-rw-r--r-- | Modules/FindPkgConfig.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPkgConfig.cmake b/Modules/FindPkgConfig.cmake index 286cc23..8327143 100644 --- a/Modules/FindPkgConfig.cmake +++ b/Modules/FindPkgConfig.cmake @@ -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 |