1From be8e3d57aeb5b4df6abb52c5fa88666d48e7d7a0 Mon Sep 17 00:00:00 2001
2From: Giampiero Gabbiani <giampiero@gabbiani.org>
3Date: Tue, 14 Jan 2020 22:03:51 +0100
4Subject: [PATCH] cpack.d is now optional
5
6---
7 CMakeLists.txt | 5 ++++-
8 1 file changed, 4 insertions(+), 1 deletion(-)
9
10diff --git a/CMakeLists.txt b/CMakeLists.txt
11index 3ce3a0d3a..755bd9d59 100644
12--- a/CMakeLists.txt
13+++ b/CMakeLists.txt
14@@ -95,6 +95,7 @@ option(SPIDERMONKEY_RUNTIME_LINKING "Enable SpiderMonkey runtime linking when ON
15 
16 option(COIN_VERBOSE "Add verbose debugging information during the configure process." OFF)
17 option(HAVE_MULTIPLE_VERSION "Forces versioned paths for includes and documentation when ON, usual behaviour otherwise." OFF)
18+option(COIN_USE_CPACK "If enabled the cpack subrepo is mandatory" OFF)
19 
20 cmake_dependent_option(COIN_BUILD_MAC_FRAMEWORK "Build framework instead of dylib on Mac OS X when ON. Only valid if COIN_BUILD_SHARED_LIBS is ON." OFF "APPLE;NOT IOS;COIN_BUILD_SHARED_LIBS" OFF)
21 cmake_dependent_option(COIN_BUILD_MAC_X11 "Build for X11 on Mac OS X when ON. Default is OFF." OFF "APPLE" OFF)
22@@ -820,4 +821,6 @@ endif()
23 
24 # ############################################################################
25 # New CPACK section, please see the README file inside cpack.d directory.
26-add_subdirectory(cpack.d)
27+if (COIN_USE_CPACK)
28+  add_subdirectory(cpack.d)
29+endif()
30-- 
312.26.2
32
33