cmake: always exit with an error if a required library can't be found

This commit is contained in:
Michael Gehring 2008-07-18 08:24:09 +02:00 committed by Julien Danjou
parent 053ae6dce6
commit 38ff94733b
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ pkg_check_modules(AWESOME_REQUIRED REQUIRED
xcb-icccm
cairo-xcb)
if(NOT AWESOME_REQUIRED_FOUND)
message(FATAL_ERROR)
endif()
macro(a_find_library variable library)
find_library(${variable} ${library})
if(NOT ${variable})