From 38ff94733b2c9bbf2b1648f3746a3eedf8d87c09 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Fri, 18 Jul 2008 08:24:09 +0200 Subject: [PATCH] cmake: always exit with an error if a required library can't be found --- awesomeConfig.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index c56dac71..9e346d83 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -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})