comparison OrthancFramework/Resources/CMake/LibPngConfiguration.cmake @ 5121:77e20ce39d6f

removed some warnings for recent versions of CMake
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Dec 2022 15:09:38 +0100
parents 3c3bb0181e96
children 0ea402b4d901
comparison
equal deleted inserted replaced
5120:a6fa660ec26e 5121:77e20ce39d6f
69 source_group(ThirdParty\\libpng REGULAR_EXPRESSION ${LIBPNG_SOURCES_DIR}/.*) 69 source_group(ThirdParty\\libpng REGULAR_EXPRESSION ${LIBPNG_SOURCES_DIR}/.*)
70 70
71 else() 71 else()
72 include(FindPNG) 72 include(FindPNG)
73 73
74 if (NOT ${PNG_FOUND}) 74 if (NOT PNG_FOUND)
75 message(FATAL_ERROR "Unable to find libpng") 75 message(FATAL_ERROR "Unable to find libpng")
76 endif() 76 endif()
77 77
78 include_directories(${PNG_INCLUDE_DIRS}) 78 include_directories(${PNG_INCLUDE_DIRS})
79 link_libraries(${PNG_LIBRARIES}) 79 link_libraries(${PNG_LIBRARIES})