From: José Fonseca Date: Sun, 28 Oct 2012 10:48:22 +0000 (+0000) Subject: Print a clear message when X11 is not found (to help debug issue #99) X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=8d1d532f4bcd04bc2855980669dc6cabec0c6415 Print a clear message when X11 is not found (to help debug issue #99) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 213325c..f5b7c34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,6 +82,10 @@ else () if (X11_FOUND) include_directories (${X11_INCLUDE_DIR}) add_definitions (-DHAVE_X11) + else () + # Print a clear message when X11 is not found + include (FindPackageMessage) + find_package_message (X11 "Could not find X11" "") endif () endif ()