diff options
author | Brad King <brad.king@kitware.com> | 2014-03-26 17:24:40 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-03-26 17:24:40 (GMT) |
commit | 2cb8417584e0a8c7820a60bdde0827042c0986e0 (patch) | |
tree | 1dec0e2d2cd6b6d5fa981ef79822a80eeab827c3 | |
parent | a11d1c6135fc752d1153192a02f0384e79c8094b (diff) | |
parent | 63a4c0af31fd067a189aaa44cd4b8d17e9efd5c7 (diff) | |
download | CMake-2cb8417584e0a8c7820a60bdde0827042c0986e0.zip CMake-2cb8417584e0a8c7820a60bdde0827042c0986e0.tar.gz CMake-2cb8417584e0a8c7820a60bdde0827042c0986e0.tar.bz2 |
Merge topic 'FindPkgConfig-stop-on-missing'
63a4c0af FindPkgConfig: Stop processing when REQUIRED package not found (#14381)
-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 |