Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tsdgeos committed Jan 20, 2025
1 parent 4a3e0c7 commit 220163b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions FindGphoto2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ else()
endif()
endif()

# Workaround https://github.com/gphoto/libgphoto2/issues/1077
set(GPHOTO2_INCLUDE_DIRS_AUX ${GPHOTO2_INCLUDE_DIRS})
set(GPHOTO2_INCLUDE_DIRS "")
foreach(_includedir ${GPHOTO2_INCLUDE_DIRS_AUX})
set(GPHOTO2_INCLUDE_DIRS ${GPHOTO2_INCLUDE_DIRS} ${_includedir})
set(GPHOTO2_INCLUDE_DIRS ${GPHOTO2_INCLUDE_DIRS} ${_includedir}/..)
endforeach()
endif()

mark_as_advanced(GPHOTO2_LIBRARIES GPHOTO2_INCLUDE_DIRS)

0 comments on commit 220163b

Please sign in to comment.