vide_public/external/configure_healpix.cmake
Guilhem Lavaux affb56ff48 Merged in python3 (pull request #5)
Port to python3, large code cleanup

* Fixed command line for cosmotool

* Fix path

* Dump command line is log file

* Fix important typo

* Modify paths for example

* Fix path again

* Use an explicit constructor

* Change file to open (python 2->3)

* python3 fix for xrange in periodic_kdtree.py

* Fixed index for Np, numPart, numZones, numZonesTot, partID, zoneID in catalogUtil.py
2020-12-29 08:56:33 +00:00

12 lines
467 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} --libdir=${HEALPIX_INSTALL}/lib --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")