The CMake script struggles to find the already installed cfitsio library.
I fixed the problem changing line 38 of cmake/FindCfitsIO.cmake
from
HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include)
to
HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include PATH_SUFFIXES cfitsio)
for a more general solution you might want to use
HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include include/cfitsio include/libcfitsio0)
The CMake script struggles to find the already installed cfitsio library.
I fixed the problem changing line 38 of cmake/FindCfitsIO.cmake from
HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include)
toHINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include PATH_SUFFIXES cfitsio)
for a more general solution you might want to use
HINTS ${CFITSIO_ROOT_DIR} PATH_SUFFIXES include include/cfitsio include/libcfitsio0)