Skip to content

Commit

Permalink
actually set the config item when disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Apr 3, 2024
1 parent 5ec93f0 commit 4be916f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ macro(magick_find_delegate)
set(IMAGEMAGICK_DELEGATES_LIBRARIES ${IMAGEMAGICK_DELEGATES_LIBRARIES} ${MAGICK_FIND_TARGETS})
else()
message("-- Did not find expected target ${MAGICK_FIND_TARGETS}, disabling ${MAGICK_FIND_NAME}")
set(${MAGICK_FIND_DELEGATE} FALSE)
endif()
else()
if(TARGET ${MAGICK_FIND_NAME}::${MAGICK_FIND_NAME})
set(IMAGEMAGICK_DELEGATES_LIBRARIES ${IMAGEMAGICK_DELEGATES_LIBRARIES} ${MAGICK_FIND_NAME}::${MAGICK_FIND_NAME})
else()
message("-- Did not find expected target ${MAGICK_FIND_NAME}::${MAGICK_FIND_NAME}, disabling ${MAGICK_FIND_NAME}")
set(${MAGICK_FIND_DELEGATE} FALSE)
endif()
endif()
else()
Expand Down

0 comments on commit 4be916f

Please # to comment.