diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b70110947b..824ccc72244 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1489,6 +1489,7 @@ if(WITH_IMAGE_OPENJPEG) # dealt with above else() set(OPENJPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/extern/libopenjpeg") + add_definitions(-DOPJ_STATIC) endif() endif()