- **Breaking**: An `outline_height` field has been added to the `Agnodeinfo_t`
struct.
- When using the CMake build system, the minimum requirement has been increased
- from CMake 3.9 to CMake 3.10.2.
+ from CMake 3.9 to CMake 3.13.0.
- When compiling Graphviz with the Intel C Compiler, the Autotools build system
no longer suppresses `-ffast-math`. Users relying on this are encouraged to
investigate what in their build environment is appending a flag their C
-cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.13.0 FATAL_ERROR)
project(Graphviz)
include(FeatureSummary)
# ============================ Set Graphviz version ============================
-if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
- find_program(Python3_EXECUTABLE NAMES python3 python3.exe python.exe)
-else()
- find_package(Python3 COMPONENTS Interpreter)
-endif()
-if(NOT Python3_EXECUTABLE)
- message(FATAL_ERROR "Python 3 not found")
-endif()
+find_package(Python3 REQUIRED COMPONENTS Interpreter)
if(DEFINED VERSION)
set(GRAPHVIZ_VERSION_STRING "${VERSION}")
if(use_coverage)
add_compile_options("-coverage")
- if(${CMAKE_VERSION} VERSION_LESS "3.13.0")
- link_libraries("-coverage")
- else()
- add_link_options("-coverage")
- endif()
+ add_link_options("-coverage")
endif()
# ============================ Packaging information ===========================
find_package(PkgConfig)
pkg_check_modules(CAIRO cairo)
- # prior to CMake 3.12, PkgConfig does not set *_LINK_LIBRARIES, so do it
- # manually
- if(${CMAKE_VERSION} VERSION_LESS 3.12)
- find_library(CAIRO_LINK_LIBRARIES cairo PATHS ENV LIBRARY_PATH)
- endif()
-
find_package_handle_standard_args(CAIRO DEFAULT_MSG
CAIRO_INCLUDE_DIRS
CAIRO_LIBRARIES
find_package(PkgConfig)
pkg_check_modules(PANGOCAIRO pangocairo)
- # prior to CMake 3.12, PkgConfig does not set *_LINK_LIBRARIES, so do it
- # manually
- if(${CMAKE_VERSION} VERSION_LESS 3.12)
- find_library(PANGOCAIRO_LINK_LIBRARIES pangocairo-1.0
- PATHS ENV LIBRARY_PATH)
- endif()
-
find_package_handle_standard_args(PANGOCAIRO DEFAULT_MSG
PANGOCAIRO_INCLUDE_DIRS
PANGOCAIRO_LIBRARIES