FindImagemagick: missing check for imported target existence prior to creation
It's not possible to call find_package(ImageMagick)
more than once with any of the same components. If I have multiple optional parts of a build and I keep the responsibility for finding dependencies within each optional part, I may have multiple calls to find_package
for the same library depending on what options are enabled. This is my own use-case, but this also applies to any CMake code one might include that happens to call find_package(ImageMagick)
for whatever reason. If it happens to be invoked multiple times, it will break, and workarounds have to be employed to get the build working. This seems like a bug; modules should expect they could be included more than once in the same build configuration.