Skip to content

Commit

Permalink
Workaround proper version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed May 10, 2024
1 parent ae541f6 commit 1486ee7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@

find_package(OpenCV REQUIRED)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Multimedia)
find_package(exiv2 0.28.2 REQUIRED)
find_package(exiv2 REQUIRED)
find_package(Threads REQUIRED)
find_package(CsLibGuarded REQUIRED)

include(GenerateExportHeader)

if(exiv2_VERSION VERSION_LESS 0.28.1)
message(FATAL_ERROR "Exiv2 0.28.1 or higher is required")
endif()


if(TARGET Exiv2::exiv2lib)
set(EXIV2_LIB Exiv2::exiv2lib)
else()
Expand Down

0 comments on commit 1486ee7

Please sign in to comment.