Reverting the use of #include "openjpegConfigure.h" until we find a compatible
[openjpeg.git] / codec / CMakeLists.txt
index fdefce6c42d636f248491c21d825c3e551b7fca4..563ae6dd9c6c6427380632c3a59be110b570d8fe 100644 (file)
@@ -14,6 +14,12 @@ IF(DONT_HAVE_GETOPT)
   )
 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)
+
 # Headers file are located here:
 INCLUDE_DIRECTORIES(
   ${OPENJPEG_SOURCE_DIR}/libopenjpeg