Added detection of the support for march=native (solve healpy building issue on old compilers)

This commit is contained in:
Guilhem Lavaux 2013-01-29 15:09:40 -05:00
parent 537b7c1f43
commit 2b807e26bd
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,9 @@ SET(ENV{PYTHONPATH} ${PYTHON_LOCAL_SITE_PACKAGE}:$ENV{PYTHONPATH})
SET(ENV{CFITSIO_EXT_INC} ${CFITSIO_EXT_INC})
SET(ENV{CFITSIO_EXT_LIB} ${CFITSIO_EXT_LIB})
SET(ENV{CFITSIO_EXT_PREFIX} ${CFITSIO_EXT_PREFIX})
IF (NOT SUPPORT_ARCH_NATIVE)
SET(ENV{HEALPY_WITHOUT_NATIVE} 1)
ENDIF(NOT SUPPORT_ARCH_NATIVE)
SET(PYTHON_BUILD_COMMAND ${PYTHON_EXECUTABLE} setup.py build)
MESSAGE(STATUS "Running ${PYTHON_BUILD_COMMAND}")