]> granicus.if.org Git - openjpeg/commitdiff
workaround for name clash when building static and dynamic on WIN32 (see http://www...
authorAntonin Descampe <antonin@gmail.com>
Fri, 3 Dec 2010 11:57:00 +0000 (11:57 +0000)
committerAntonin Descampe <antonin@gmail.com>
Fri, 3 Dec 2010 11:57:00 +0000 (11:57 +0000)
CHANGES
libopenjpeg/CMakeLists.txt

diff --git a/CHANGES b/CHANGES
index e4a6b4e0ea42e8776220616eb696f0bd858c5e42..e99405be377aced9ed01d01a7d21ac9b381227db 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,9 @@ What's New for OpenJPEG
 ! : changed
 + : added
 
+December 3, 2010
+* [antonin] workaround for name clash when building static and dynamic on WIN32 (see http://www.vtk.org/Bug/view.php?id=10190 for description) 
+
 November 28, 2010
 * [antonin] fixed a bug in codec/convert.c that prevented to build executables with WIN32 compiler (thanks winfried)
 ! [antonin] 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).
index eb891d89c17429e5d8887976a474e4a51c2432c5..f1934d174553647d0d50fa7a3738910d96614010 100644 (file)
@@ -31,7 +31,7 @@ IF(WIN32)
   ADD_DEFINITIONS(-DOPJ_STATIC)
 ENDIF(WIN32)
 ADD_LIBRARY(${OPENJPEG_LIBRARY_NAME}.static STATIC ${OPENJPEG_SRCS})
-SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}.static PROPERTIES OUTPUT_NAME ${OPENJPEG_LIBRARY_NAME})
+SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}.static PROPERTIES CLEAN_DIRECT_OUTPUT 1 OUTPUT_NAME ${OPENJPEG_LIBRARY_NAME} PREFIX "lib")
 SET_TARGET_PROPERTIES(${OPENJPEG_LIBRARY_NAME}.static PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
 IF(LCMS_LIB)
   TARGET_LINK_LIBRARIES(${OPENJPEG_LIBRARY_NAME}.static ${LCMS_LIB})