Skip to content

Commit

Permalink
CMake: Fix Finding EXPAT
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Feb 28, 2025
1 parent 03af084 commit 8ce9486
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/AnalyzeView/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ CPMAddPackage(
set(_EXIV2_ENABLE_XMP OFF)
if(EXPAT_ADDED)
find_package(expat CONFIG QUIET)
if(NOT TARGET expat::expat)
if(TARGET expat::expat)
add_library(EXPAT::EXPAT INTERFACE IMPORTED)
target_link_libraries(EXPAT::EXPAT INTERFACE expat::expat)
set(_EXIV2_ENABLE_XMP ON)
else()
find_package(EXPAT MODULE)
if(EXPAT_FOUND)
if(NOT TARGET expat::expat)
add_library(expat::expat INTERFACE IMPORTED)
target_link_libraries(expat::expat INTERFACE EXPAT::EXPAT)
endif()
set(_EXIV2_ENABLE_XMP ON)
endif()
endif()
Expand Down

0 comments on commit 8ce9486

Please sign in to comment.