CMake/Windows: Fix build issue in lite+haru
Haru depends on some symbols defined in libtiff which will cause linker errors if not enabled. Disable haru if WITH_IMAGE_TIFF is off.
This commit is contained in:
@@ -803,6 +803,11 @@ endif()
|
||||
|
||||
if(WITH_HARU)
|
||||
if(EXISTS ${LIBDIR}/haru)
|
||||
if(NOT WITH_IMAGE_TIFF)
|
||||
# Some symbols in libharu are provided by libtiff.
|
||||
message(WARNING "WITH_IMAGE_TIFF not enabled, disabling WITH_HARU")
|
||||
set(WITH_HARU OFF)
|
||||
endif()
|
||||
set(HARU_FOUND On)
|
||||
set(HARU_ROOT_DIR ${LIBDIR}/haru)
|
||||
set(HARU_INCLUDE_DIRS ${HARU_ROOT_DIR}/include)
|
||||
|
Reference in New Issue
Block a user