cmake: always exit with an error if a required library can't be found
This commit is contained in:
parent
053ae6dce6
commit
38ff94733b
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue