]> granicus.if.org Git - graphviz/commitdiff
CMake: Use FeatureSummary
authorKevin Funk <kfunk@kde.org>
Wed, 14 Jun 2017 06:56:23 +0000 (08:56 +0200)
committerKevin Funk <kfunk@kde.org>
Wed, 14 Jun 2017 06:56:23 +0000 (08:56 +0200)
Now prints information about detected/unavailable packages:

Excerpt:
```
-- The following OPTIONAL packages have been found:

 * Cairo
 * PkgConfig
 * EXPAT
 * GD
...
```

CMakeLists.txt

index 3528aff90a41bb9b68aade3c2b5885a0812b7aed..35f47f64929bf8dd5f3376279192493f195fdc91 100644 (file)
@@ -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)