borg_public/external/configure_healpix.cmake
2023-05-29 10:41:03 +02:00

13 lines
437 B
CMake

SET(ENV{CFITSIO_LIBS} "-L${HEALPIX_INSTALL}/lib -lcfitsio")
SET(ENV{CFITSIO_CFLAGS} -I${HEALPIX_INSTALL}/include)
execute_process(
COMMAND "${HEALPIX_DIR}/configure" --prefix=${HEALPIX_INSTALL} --disable-shared --with-pic --disable-maintainer-mode CC=${HEALPIX_CC} CXX=${HEALPIX_CXX}
RESULT_VARIABLE okcode
)
IF (NOT "${okcode}" STREQUAL "0")
MESSAGE(FATAL_ERROR "Configure failed")
ENDIF (NOT "${okcode}" STREQUAL "0")