diff --git a/CMake/ImportFLTK.cmake b/CMake/ImportFLTK.cmake index 1eaa39467d5039f1c3b00a23335f7837b029a40a..a27eb26d9af452ff1c0a794e62629d4cecd6a2c0 100644 --- a/CMake/ImportFLTK.cmake +++ b/CMake/ImportFLTK.cmake @@ -76,6 +76,9 @@ IF(OTB_USE_VISU_GUI) SET(FLUID_COMMAND fluid) # FLTK CMake needs a variable called JPEG_INCLUDE_DIR SET(JPEG_INCLUDE_DIR ${JPEG_INCLUDE_DIRS}) + + # FindPNG does not define libpng13 as a possible libpng name + SET(PNG_NAMES libpng13) # Needed for version 1.1.>=9 SET(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND})