]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Print a clear message when X11 is not found (to help debug issue #99)
[apitrace] / CMakeLists.txt
index 213325cfaa17dc81533207e9b01002ac7119db66..f5b7c34d0bb6fe914e1abc62645133711cb87089 100644 (file)
@@ -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 ()