FindImageMagick fails to find executables in standard paths
while trying to install Theia which depends on ImageMagick i get the following error that cmake is unable to find ImageMagick. I am sure ImageMagick is installed and both the commands Mogrify and Convert are working why can it not be found?
here is the error message:
-- Check for ImageMagick
CMake Error at /usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find ImageMagick (missing: ImageMagick_convert_EXECUTABLE
ImageMagick_mogrify_EXECUTABLE ImageMagick_convert_EXECUTABLE
ImageMagick_mogrify_EXECUTABLE)
Call Stack (most recent call first):
/usr/local/share/cmake-3.6/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/local/share/cmake-3.6/Modules/FindImageMagick.cmake:268 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
libraries/cimg/CMakeLists.txt:44 (find_package)
-- Configuring incomplete, errors occurred!