summaryrefslogtreecommitdiff
path: root/src/bin/mj2
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-11 09:11:35 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2014-03-11 09:11:35 +0000
commitfcc658f10669f76555dea1abf9a4cf7ed70662a9 (patch)
tree0cb91247bfd040515ed419cc0adcbb7ead65e600 /src/bin/mj2
parent2e7b8fb9a1e03a59017dc3d453b176f343144c89 (diff)
[trunk] Fix compilation errors when JPWL and/or MJ2 are build
Diffstat (limited to 'src/bin/mj2')
-rw-r--r--src/bin/mj2/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/mj2/CMakeLists.txt b/src/bin/mj2/CMakeLists.txt
index e6b005b6..78ad7543 100644
--- a/src/bin/mj2/CMakeLists.txt
+++ b/src/bin/mj2/CMakeLists.txt
@@ -32,6 +32,10 @@ foreach(exe
${MJ2_SRCS}
${OPENJPEG_SOURCE_DIR}/src/bin/common/color.c
)
+ set_property(
+ TARGET ${exe}
+ APPEND PROPERTY COMPILE_DEFINITIONS USE_MJ2
+ )
target_link_libraries(${exe} ${LCMS_LIBNAME} openmj2)
if(UNIX)