comparison OrthancFramework/Resources/CMake/LibJpegConfiguration.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 43e613a7756b
children 0ea402b4d901
comparison
equal deleted inserted replaced
5120:a6fa660ec26e 5121:77e20ce39d6f
105 source_group(ThirdParty\\libjpeg REGULAR_EXPRESSION ${LIBJPEG_SOURCES_DIR}/.*) 105 source_group(ThirdParty\\libjpeg REGULAR_EXPRESSION ${LIBJPEG_SOURCES_DIR}/.*)
106 106
107 else() 107 else()
108 include(FindJPEG) 108 include(FindJPEG)
109 109
110 if (NOT ${JPEG_FOUND}) 110 if (NOT JPEG_FOUND)
111 message(FATAL_ERROR "Unable to find libjpeg") 111 message(FATAL_ERROR "Unable to find libjpeg")
112 endif() 112 endif()
113 113
114 include_directories(${JPEG_INCLUDE_DIR}) 114 include_directories(${JPEG_INCLUDE_DIR})
115 link_libraries(${JPEG_LIBRARIES}) 115 link_libraries(${JPEG_LIBRARIES})