CMake: Use SEND_ERROR to report more errors at once

This commit is contained in:
Sebastian Pipping 2019-08-12 20:29:43 +02:00
parent 5ccfc06ff7
commit db81bf02a7

View File

@ -65,7 +65,7 @@ endif()
if(USE_libbsd) if(USE_libbsd)
find_library(LIB_BSD NAMES bsd) find_library(LIB_BSD NAMES bsd)
if(NOT LIB_BSD) if(NOT LIB_BSD)
message(FATAL_ERROR "USE_libbsd option is enabled, but libbsd was not found") message(SEND_ERROR "USE_libbsd option is enabled, but libbsd was not found")
else() else()
set(HAVE_LIBBSD TRUE) set(HAVE_LIBBSD TRUE)
endif() endif()