summaryrefslogtreecommitdiff
path: root/jp3d/codec
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2010-11-28 17:07:04 +0000
committerAntonin Descampe <antonin@gmail.com>2010-11-28 17:07:04 +0000
commiteb5694ca2a629f707736cbf203b21472ba6a0716 (patch)
treed579066b589f5a0ca1de9451aa2c932240cfb226 /jp3d/codec
parent389166e86e14a3a09ccf3d28ca0ee64968c5de45 (diff)
changed cmake behaviour: executables are now always statically linked. When -DBUIL_SHARED_LIBS option is ON (the default), the shared versions of the libraries are also built (but executables remain linked against the static libraries).
Diffstat (limited to 'jp3d/codec')
-rw-r--r--jp3d/codec/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/jp3d/codec/CMakeLists.txt b/jp3d/codec/CMakeLists.txt
index 24595c7a..bf08bc00 100644
--- a/jp3d/codec/CMakeLists.txt
+++ b/jp3d/codec/CMakeLists.txt
@@ -27,16 +27,14 @@ ENDIF(DONT_HAVE_GETOPT)
# Do the proper thing when building static...if only there was configured
# headers or def files instead
-IF(NOT BUILD_SHARED_LIBS)
- ADD_DEFINITIONS(-DOPJ_STATIC)
-ENDIF(NOT BUILD_SHARED_LIBS)
+ADD_DEFINITIONS(-DOPJ_STATIC)
#FIND_PACKAGE(TIFF REQUIRED)
# Loop over all executables:
FOREACH(exe jp3d_to_volume volume_to_jp3d)
ADD_EXECUTABLE(${exe} ${exe}.c ${common_SRCS})
- TARGET_LINK_LIBRARIES(${exe} ${OPJ_PREFIX}openjp3dvm) # ${TIFF_LIBRARIES})
+ TARGET_LINK_LIBRARIES(${exe} ${OPENJPEG_LIBRARY_NAME}_JP3D.static) # ${TIFF_LIBRARIES})
# On unix you need to link to the math library:
IF(UNIX)
TARGET_LINK_LIBRARIES(${exe} m)