CMake: Attempt to fix compilation error on Windows after recent changes
This commit is contained in:
@@ -2325,6 +2325,10 @@ if(WITH_IMAGE_OPENJPEG)
|
|||||||
set(OPENJPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/extern/libopenjpeg")
|
set(OPENJPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/extern/libopenjpeg")
|
||||||
set(OPENJPEG_DEFINES "-DOPJ_STATIC")
|
set(OPENJPEG_DEFINES "-DOPJ_STATIC")
|
||||||
endif()
|
endif()
|
||||||
|
# Special handling of Windows platform where openjpeg is always static.
|
||||||
|
if(WIN32)
|
||||||
|
set(OPENJPEG_DEFINES "-DOPJ_STATIC")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_IMAGE_REDCODE)
|
if(WITH_IMAGE_REDCODE)
|
||||||
|
5
extern/libopenjpeg/CMakeLists.txt
vendored
5
extern/libopenjpeg/CMakeLists.txt
vendored
@@ -31,11 +31,6 @@ set(INC_SYS
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# TODO(sergey): Handle this via OPENJPEG_DEFINES
|
|
||||||
if(WIN32)
|
|
||||||
add_definitions(-DOPJ_STATIC)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_definitions(${OPENJPEG_DEFINES})
|
add_definitions(${OPENJPEG_DEFINES})
|
||||||
|
|
||||||
set(SRC
|
set(SRC
|
||||||
|
Reference in New Issue
Block a user