From ffc611445cd1a58ca43eb427810a585a90255500 Mon Sep 17 00:00:00 2001 From: Kevin Funk Date: Wed, 14 Jun 2017 08:56:23 +0200 Subject: [PATCH] CMake: Use FeatureSummary Now prints information about detected/unavailable packages: Excerpt: ``` -- The following OPTIONAL packages have been found: * Cairo * PkgConfig * EXPAT * GD ... ``` --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3528aff90..35f47f649 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,8 @@ cmake_minimum_required (VERSION 2.8 FATAL_ERROR) project (Graphviz) +include(FeatureSummary) + # =============================== Build options ================================ option(enable_ltdl "Support on-demand plugin loading" ON) option(with_digcola "DIGCOLA features in neato layout engine" ON ) @@ -164,3 +166,5 @@ add_subdirectory(cmd) enable_testing() add_subdirectory(tests) + +feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES) -- 2.40.0