From: Erwin Janssen Date: Wed, 28 Dec 2016 15:06:50 +0000 (+0100) Subject: CMake: add BISON and FLEX as build dependencies X-Git-Tag: 2.42.0~213^2^2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e964991287314ba87fefca2e2079a3d1e01e43db;p=graphviz CMake: add BISON and FLEX as build dependencies BISON and FLEX are required to build some of the core parts of Graphviz. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee91e3fe..8d03de7b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ cmake_minimum_required (VERSION 2.8 FATAL_ERROR) -# Build dependencies -# ================== +# Required to set build version find_package(Git REQUIRED) # General project information @@ -28,4 +27,9 @@ endif() message(STATUS "Graphviz version: ${GRAPHVIZ_VERSION_MAJROR}.${GRAPHVIZ_VERSION_MINOR}.${GRAPHVIZ_VERSION_BUILD}") +# Build dependencies +# ================== +find_package(BISON REQUIRED) +find_package(FLEX REQUIRED) + add_subdirectory(lib) diff --git a/appveyor.yml b/appveyor.yml index ffdb27fe7..e0d0763e4 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -54,6 +54,7 @@ build_script: } if($env:build_system -eq "cmake") { + $env:Path += ";" + $env:APPVEYOR_BUILD_FOLDER + "\windows\dependencies\graphviz-build-utilities"; mkdir build; cd build; cmake ..;