ENH: Now verifies if the OPJ_STATIC macro is not
authorLuis Ibanez <luis.ibanez@gmail.com>
Tue, 7 Sep 2010 22:24:12 +0000 (22:24 +0000)
committerLuis Ibanez <luis.ibanez@gmail.com>
Tue, 7 Sep 2010 22:24:12 +0000 (22:24 +0000)
     already defined, before it defines it.

openjpegConfigure.h.in

index 93e326a5d215062262312575e5be50d06950218a..d423c6a751ab65bbd48e920a49bd876ad14849db 100644 (file)
@@ -39,7 +39,7 @@
 #cmakedefine OPENJPEG_USE_SYSTEM_ZLIB
 
 #cmakedefine BUILD_SHARED_LIBS
-#if !defined(BUILD_SHARED_LIBS)
+#if !defined(BUILD_SHARED_LIBS) && !defined(OPJ_STATIC)
 #define OPJ_STATIC
 #endif