Changeset 1963 for trunk


Ignore:
Timestamp:
12/14/10 13:15:13 (14 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2668

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Updated along with Jonas's recommendation.
Added result check for lapack, blas.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r1962 r1963  
    140140#
    141141find_library( BLAS_LIBRARIES libblas.${SO} )
     142if ( BLAS_LIBRARIES MATCHES "NOTFOUND$" )
     143   message( FATAL_ERROR "blas could not be found. Please check!" )
     144endif()
    142145message( STATUS "BLAS_LIBRARIES = " ${BLAS_LIBRARIES} )
    143146
     
    147150#
    148151find_library( LAPACK_LIBRARIES liblapack.${SO} )
     152if ( LAPACK_LIBRARIES MATCHES "NOTFOUND$" )
     153   message( FATAL_ERROR "lapack could not be found. Please check!" )
     154endif()
    149155message( STATUS "LAPACK_LIBRARIES = " ${LAPACK_LIBRARIES} )
    150156
     
    159165              HINTS ${casaroot}/${arch}/include/
    160166              PATH_SUFFIXES casacore )
    161    if( CASACORE_INCLUDE_DIR STREQUAL CASACORE_INCLUDE_DIR-NOTFOUND )
     167   if( CASACORE_INCLUDE_DIR MATCHES "NOTFOUND$" )
    162168     message( FATAL_ERROR "${_includename} could not be found. Please check!" )
    163169   endif()
     
    181187      find_library( _casacore_lib ${_libname}
    182188                    PATHS ${CMAKE_INSTALL_PREFIX} PATH_SUFFIXES lib )
    183       if( NOT _casacore_lib-NOTFOUND )
     189      if( _casacore_lib MATCHES "NOTFOUND$" )
     190         message( FATAL_ERROR "${_libname} could not be found. Please check!" )
     191      else()
    184192         #list( APPEND _casacore_libs casa_${_a} )
    185193         list( APPEND _casacore_libs ${_casacore_lib} )
     
    191199   set( _libname libcasacore.${SO} )
    192200   find_library( CASACORE_LIBRARIES ${_libname} )
    193    if( CASACORE_LIBRARIES STREQUAL CASACORE_LIBRARIES-NOTFOUND )
     201   if( CASACORE_LIBRARIES MATCHES "NOTFOUND$" )
    194202      message( FATAL_ERROR "${_libname} could not be found. Please check!" )
    195203   endif()
     
    197205   find_path( CASACORE_INCLUDE_DIR ${_includename}
    198206              PATH_SUFFIXES casacore )
    199    if( CASACORE_INCLUDE_DIR STREQUAL CASACORE_INCLUDE_DIR-NOTFOUND )
     207   if( CASACORE_INCLUDE_DIR MATCHES "NOTFOUND$" )
    200208     message( FATAL_ERROR "${_includename} could not be found. Please check!" )
    201209   endif()
     
    322330           CPP_VERSION CFITSIO_VERSION
    323331           RUN_VERSION "(ffvers(&v), v)" )
    324 if( NOT CFITSIO_FOUND )
    325    message( FATAL_ERROR "CFITSIO could not be found. Please check!" )
    326 endif()
     332#if( NOT CFITSIO_FOUND )
     333#   message( FATAL_ERROR "CFITSIO could not be found. Please check!" )
     334#endif()
    327335message( STATUS "CFITSIO_INCLUDE_DIRS = " ${CFITSIO_INCLUDE_DIRS} )
    328336message( STATUS "CFITSIO_LIBRARIES = " ${CFITSIO_LIBRARIES} )
     
    336344find_library( WCSLIB ${_wcslib}
    337345              HINTS /usr/lib64 /usr/lib ${casaroot}/${arch}/lib )
    338 if( WCSLIB STREQUAL WCSLIB-NOTFOUND )
     346if( WCSLIB MATCHES "NOTFOUND$" )
    339347   message( STATUS "${_wcslib} could not be found." )
    340348   unset( _wcslib CACHE )
     
    344352   find_library( WCSLIB ${_wcslib}
    345353                 HINTS /usr/lib64 /usr/lib ${casaroot}/${arch}/lib )
    346    if( WCSLIB STREQUAL WCSLIB-NOTFOUND )
     354   if( WCSLIB MATCHES "NOTFOUND$" )
    347355      message( FATAL_ERROR "${_wcslib} could not be found. Please check!" )
    348356   endif()
     
    351359find_path( WCSLIB_INCLUDE_DIR wcslib/wcs.h
    352360           HINTS /usr/include ${casaroot}/${arch}/include )
    353 if( WCSLIB_INCLUDE_DIR STREQUAL WCSLIB_INCLUDE_DIR-NOTFOUND )
     361if( WCSLIB_INCLUDE_DIR MATCHES "NOTFOUND$" )
    354362   message( FATAL_ERROR "wcs.h could not be found. Please check!" )
    355363endif()
     
    410418  DEPENDS FORTRAN
    411419)
    412 if( NOT RPFITS_FOUND )
    413    message( FATAL_ERROR "${_wcslib} could not be found. Please check!" )
    414 endif()
     420#if( NOT RPFITS_FOUND )
     421#   message( FATAL_ERROR "rpfits could not be found. Please check!" )
     422#endif()
    415423message( STATUS "RPFITS_INCLUDE_DIRS = " ${RPFITS_INCLUDE_DIRS} )
    416424message( STATUS "RPFITS_LIBRARIES = " ${RPFITS_LIBRARIES} )
Note: See TracChangeset for help on using the changeset viewer.