Set openjpeg to static. Solves linking issues on recent openjpeg update

This commit is contained in:
Antony Riakiotakis 2012-06-21 14:44:15 +00:00
parent 5def0b6c55
commit df0bc84439

@ -1489,6 +1489,7 @@ if(WITH_IMAGE_OPENJPEG)
# dealt with above # dealt with above
else() else()
set(OPENJPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/extern/libopenjpeg") set(OPENJPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/extern/libopenjpeg")
add_definitions(-DOPJ_STATIC)
endif() endif()
endif() endif()