Ticket #57803: patch-FindExiv2.diff

File patch-FindExiv2.diff, 624 bytes (added by NicosPavlov, 6 years ago)
  • cmake/modules/FindExiv2.cmake

    old new  
    5757
    5858# Get the version number from exiv2/version.hpp and store it in the cache:
    5959if(EXIV2_INCLUDE_DIR  AND NOT  EXIV2_VERSION)
    60   file(READ ${EXIV2_INCLUDE_DIR}/exiv2/version.hpp EXIV2_VERSION_CONTENT)
     60  file(READ ${EXIV2_INCLUDE_DIR}/exiv2/exv_conf.h EXIV2_VERSION_CONTENT)
    6161  string(REGEX MATCH "#define EXIV2_MAJOR_VERSION +\\( *([0-9]+) *\\)"  _dummy "${EXIV2_VERSION_CONTENT}")
    6262  set(EXIV2_VERSION_MAJOR "${CMAKE_MATCH_1}")
    6363