Ticket #57803: patch-FindExiv2.diff
File patch-FindExiv2.diff, 624 bytes (added by NicosPavlov, 6 years ago) |
---|
-
cmake/modules/FindExiv2.cmake
old new 57 57 58 58 # Get the version number from exiv2/version.hpp and store it in the cache: 59 59 if(EXIV2_INCLUDE_DIR AND NOT EXIV2_VERSION) 60 file(READ ${EXIV2_INCLUDE_DIR}/exiv2/ version.hppEXIV2_VERSION_CONTENT)60 file(READ ${EXIV2_INCLUDE_DIR}/exiv2/exv_conf.h EXIV2_VERSION_CONTENT) 61 61 string(REGEX MATCH "#define EXIV2_MAJOR_VERSION +\\( *([0-9]+) *\\)" _dummy "${EXIV2_VERSION_CONTENT}") 62 62 set(EXIV2_VERSION_MAJOR "${CMAKE_MATCH_1}") 63 63