summaryrefslogtreecommitdiff
path: root/applications/codec
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-18 15:59:08 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-18 15:59:08 +0000
commit4f4de7070e2a9c769b41c5cdc38a0b19eb4cfa07 (patch)
tree6cdff3b13a018075eb233b667929644ce41022b6 /applications/codec
parent78d1820881894a934664b239c8f158e4b1250a1b (diff)
[1.5] Create a new cmake option to choose between convienient copy of getopt and system installed one
Udapte issue 301
Diffstat (limited to 'applications/codec')
-rw-r--r--applications/codec/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/applications/codec/CMakeLists.txt b/applications/codec/CMakeLists.txt
index 2a195155..c0a4dd72 100644
--- a/applications/codec/CMakeLists.txt
+++ b/applications/codec/CMakeLists.txt
@@ -5,8 +5,12 @@ SET(common_SRCS
convert.c
index.c
${OPENJPEG_SOURCE_DIR}/applications/common/color.c
- ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c
)
+if(NOT USE_SYSTEM_GETOPT)
+ list(APPEND common_SRCS
+ ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c
+ )
+endif()
# Headers file are located here:
INCLUDE_DIRECTORIES(