Changeset 1971
- Timestamp:
- 12/16/10 16:56:08 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r1970 r1971 200 200 string( REGEX MATCH [0-9].[0-9] PYTHONV ${PYTHON_INCLUDE_DIRS} ) 201 201 string( REPLACE "." "" PV ${PYTHONV} ) 202 set( PYTHON_PREFIX ${PYTHON_INCLUDE_DIRS}/../.. )203 202 find_path( NUMPY_INCLUDE_DIR numpy/npy_interrupt.h 204 203 PATHS 205 ${ PYTHON_PREFIX}/lib/python${PYTHONV}/site-packages/numpy/core206 ${ PYTHON_PREFIX}/Library/Frameworks/Python.framework/Versions/${PYTHONV}207 ${ PYTHON_PREFIX}/Library/Frameworks/Python.framework/Versions/${PYTHONV}/lib/python${PYTHONV}/site-packages/numpy/core204 ${pyroot}/lib/python${PYTHONV}/site-packages/numpy/core 205 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV} 206 ${pyroot}/Library/Frameworks/Python.framework/Versions/${PYTHONV}/lib/python${PYTHONV}/site-packages/numpy/core 208 207 PATH_SUFFIXES include ) 209 208 if( NUMPY_INCLUDE_DIR MATCHES "NOTFOUND$" ) … … 354 353 if( CFITSIO_INCLUDE_DIRS MATCHES "NOTFOUND$" ) 355 354 message( FATAL_ERROR "fitsio.h could not be found. Please check!" ) 355 endif() 356 string( REGEX REPLACE "/[^/]+/?$" "" CFITSIO_ROOT ${CFITSIO_INCLUDE_DIRS} ) 357 message( STATUS "CFITSIO_ROOT=" ${CFITSIO_ROOT} ) 358 find_library( CFITSIO_LIBRARIES libcfitsio.${SO} 359 PATHS ${CFITSIO_ROOT} 360 PATH_SUFFIXES lib64 lib 361 NO_DEFAULT_PATH ) 362 if( CFITSIO_LIBRARIES MATCHES "NOTFOUND$" ) 363 find_library( CFITSIO_LIBRARIES libcfitsio.a 364 PATHS ${CFITSIO_ROOT} 365 PATH_SUFFIXES lib64 lib 366 NO_DEFAULT_PATH ) 356 367 endif() 357 368 find_library( CFITSIO_LIBRARIES libcfitsio.${SO}
Note:
See TracChangeset
for help on using the changeset viewer.