Merge topic 'FindPkgConfig-stop-on-missing'

63a4c0af FindPkgConfig: Stop processing when REQUIRED package not found (#14381)
This commit is contained in:
Brad King 2014-03-26 13:24:40 -04:00 committed by CMake Topic Stage
commit 2cb8417584
1 changed files with 1 additions and 1 deletions

View File

@ -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