From 7d6d19c473511324343c9289de285e6583adf74d Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 1 Apr 2014 13:32:02 +0000 Subject: [PATCH] [1.5] Rework r2769. getopt was still being used in mj2/jpwl codecs Update issue 301 --- applications/mj2/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/mj2/CMakeLists.txt b/applications/mj2/CMakeLists.txt index 07e88acf..18d22386 100644 --- a/applications/mj2/CMakeLists.txt +++ b/applications/mj2/CMakeLists.txt @@ -1,6 +1,8 @@ # Makefile for the MJ2 codecs of the OpenJPEG library: frames_to_mj2, mj2_to_frames, extract_j2k_from_mj2 and wrap_j2k_in_mj2 +if(NOT USE_SYSTEM_GETOPT) SET(common_SRCS ${OPENJPEG_SOURCE_DIR}/applications/common/opj_getopt.c) +endif() # While mj2 executables do not use the API correctly, we do not link with the library but rather compile the sources files. SET(OPJ_SRCS