- Timestamp:
- 12/14/10 13:15:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r1962 r1963 140 140 # 141 141 find_library( BLAS_LIBRARIES libblas.${SO} ) 142 if ( BLAS_LIBRARIES MATCHES "NOTFOUND$" ) 143 message( FATAL_ERROR "blas could not be found. Please check!" ) 144 endif() 142 145 message( STATUS "BLAS_LIBRARIES = " ${BLAS_LIBRARIES} ) 143 146 … … 147 150 # 148 151 find_library( LAPACK_LIBRARIES liblapack.${SO} ) 152 if ( LAPACK_LIBRARIES MATCHES "NOTFOUND$" ) 153 message( FATAL_ERROR "lapack could not be found. Please check!" ) 154 endif() 149 155 message( STATUS "LAPACK_LIBRARIES = " ${LAPACK_LIBRARIES} ) 150 156 … … 159 165 HINTS ${casaroot}/${arch}/include/ 160 166 PATH_SUFFIXES casacore ) 161 if( CASACORE_INCLUDE_DIR STREQUAL CASACORE_INCLUDE_DIR-NOTFOUND)167 if( CASACORE_INCLUDE_DIR MATCHES "NOTFOUND$" ) 162 168 message( FATAL_ERROR "${_includename} could not be found. Please check!" ) 163 169 endif() … … 181 187 find_library( _casacore_lib ${_libname} 182 188 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() 184 192 #list( APPEND _casacore_libs casa_${_a} ) 185 193 list( APPEND _casacore_libs ${_casacore_lib} ) … … 191 199 set( _libname libcasacore.${SO} ) 192 200 find_library( CASACORE_LIBRARIES ${_libname} ) 193 if( CASACORE_LIBRARIES STREQUAL CASACORE_LIBRARIES-NOTFOUND)201 if( CASACORE_LIBRARIES MATCHES "NOTFOUND$" ) 194 202 message( FATAL_ERROR "${_libname} could not be found. Please check!" ) 195 203 endif() … … 197 205 find_path( CASACORE_INCLUDE_DIR ${_includename} 198 206 PATH_SUFFIXES casacore ) 199 if( CASACORE_INCLUDE_DIR STREQUAL CASACORE_INCLUDE_DIR-NOTFOUND)207 if( CASACORE_INCLUDE_DIR MATCHES "NOTFOUND$" ) 200 208 message( FATAL_ERROR "${_includename} could not be found. Please check!" ) 201 209 endif() … … 322 330 CPP_VERSION CFITSIO_VERSION 323 331 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() 327 335 message( STATUS "CFITSIO_INCLUDE_DIRS = " ${CFITSIO_INCLUDE_DIRS} ) 328 336 message( STATUS "CFITSIO_LIBRARIES = " ${CFITSIO_LIBRARIES} ) … … 336 344 find_library( WCSLIB ${_wcslib} 337 345 HINTS /usr/lib64 /usr/lib ${casaroot}/${arch}/lib ) 338 if( WCSLIB STREQUAL WCSLIB-NOTFOUND)346 if( WCSLIB MATCHES "NOTFOUND$" ) 339 347 message( STATUS "${_wcslib} could not be found." ) 340 348 unset( _wcslib CACHE ) … … 344 352 find_library( WCSLIB ${_wcslib} 345 353 HINTS /usr/lib64 /usr/lib ${casaroot}/${arch}/lib ) 346 if( WCSLIB STREQUAL WCSLIB-NOTFOUND)354 if( WCSLIB MATCHES "NOTFOUND$" ) 347 355 message( FATAL_ERROR "${_wcslib} could not be found. Please check!" ) 348 356 endif() … … 351 359 find_path( WCSLIB_INCLUDE_DIR wcslib/wcs.h 352 360 HINTS /usr/include ${casaroot}/${arch}/include ) 353 if( WCSLIB_INCLUDE_DIR STREQUAL WCSLIB_INCLUDE_DIR-NOTFOUND)361 if( WCSLIB_INCLUDE_DIR MATCHES "NOTFOUND$" ) 354 362 message( FATAL_ERROR "wcs.h could not be found. Please check!" ) 355 363 endif() … … 410 418 DEPENDS FORTRAN 411 419 ) 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() 415 423 message( STATUS "RPFITS_INCLUDE_DIRS = " ${RPFITS_INCLUDE_DIRS} ) 416 424 message( STATUS "RPFITS_LIBRARIES = " ${RPFITS_LIBRARIES} )
Note:
See TracChangeset
for help on using the changeset viewer.