From 672a56566a351a7b715a826a090f8f89130c5316 Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Sun, 7 May 2017 08:47:00 -0600 Subject: [PATCH] Allow for using system chigraph --- CMakeLists.txt | 8 +++++++- chigraph | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f50e307..8b94a52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,13 @@ cmake_minimum_required(VERSION 3.0) +option(CG_USE_SYSTEM_CHIGRAPH "Try to find chigraph instead of building it here" OFF) + set(BUILD_EXAMPLES OFF CACHE BOOL "") add_subdirectory(third_party/nodeeditor) -add_subdirectory(chigraph) +if (CG_USE_SYSTEM_CHIGRAPH) + find_package(Chigraph REQUIRED) +else() + add_subdirectory(chigraph) +endif() add_subdirectory(src) diff --git a/chigraph b/chigraph index 2b57776..244c0d0 160000 --- a/chigraph +++ b/chigraph @@ -1 +1 @@ -Subproject commit 2b5777613ad3dd8f7c489f6d3b6c0b8021049d9c +Subproject commit 244c0d0a512158d6f126713fc0ca0e2a3b532989