summaryrefslogtreecommitdiffstats
path: root/src/jasper-1-fixes.patch
blob: 13065edac6c87d941c17808a7d7729e759cc9003 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
This file is part of MXE. See LICENSE.md for licensing information.

Contains ad hoc patches for cross building.

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Tony Theodore <tonyt@logyst.com>
Date: Thu, 20 Jul 2017 12:28:06 +1000
Subject: [PATCH] add option to disable programs

taken from: https://github.com/mdadams/jasper/pull/144

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1111111..2222222 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,6 +91,7 @@ option(JAS_ENABLE_STRICT "Enable pedantic error checking" false)
 option(JAS_ENABLE_AUTOMATIC_DEPENDENCIES "Enable automatic dependencies" true)
 option(JAS_LOCAL "Enable local hacks for developers (do not enable)" false)
 option(JAS_ENABLE_DOC "Enable building of the documentation" true)
+option(JAS_ENABLE_PROGRAMS "Enable building of the programs" true)
 
 ################################################################################
 #
@@ -368,7 +369,9 @@ endif()
 ################################################################################
 
 add_subdirectory(src/libjasper)
-add_subdirectory(src/appl)
+if (JAS_ENABLE_PROGRAMS)
+    add_subdirectory(src/appl)
+endif ()
 if (JAS_ENABLE_DOC)
 	add_subdirectory(doc)
 endif ()