]> granicus.if.org Git - graphviz/commitdiff
CMake: add BISON and FLEX as build dependencies
authorErwin Janssen <erwinjanssen@outlook.com>
Wed, 28 Dec 2016 15:06:50 +0000 (16:06 +0100)
committerErwin Janssen <erwinjanssen@outlook.com>
Thu, 19 Jan 2017 11:53:49 +0000 (12:53 +0100)
BISON and FLEX are required to build some of the core parts of Graphviz.

CMakeLists.txt
appveyor.yml

index 1ee91e3fe1701cc21ab7dc8ae81e295163350d42..8d03de7b1c03b64a7cd4d367fcd0baa7b06f5113 100644 (file)
@@ -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)
index ffdb27fe77042085c2775d3718d1ee948e69cde4..e0d0763e4153d9ecfc793a9b0995e34e3b335bde 100644 (file)
@@ -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 ..;