ARMA_FindATLAS.cmake (armadillo-10.8.2.tar.xz) | : | ARMA_FindATLAS.cmake (armadillo-11.0.0.tar.xz) | ||
---|---|---|---|---|
find_path(ATLAS_CBLAS_INCLUDE_DIR | ||||
NAMES cblas.h | ||||
PATHS /usr/include/atlas/ /usr/include/ /usr/local/include/atlas/ /usr/local/inc | ||||
lude/ | ||||
) | ||||
find_path(ATLAS_CLAPACK_INCLUDE_DIR | ||||
NAMES clapack.h | ||||
PATHS /usr/include/atlas/ /usr/include/ /usr/local/include/atlas/ /usr/local/inc | ||||
lude/ | ||||
) | ||||
if(ATLAS_CBLAS_INCLUDE_DIR AND ATLAS_CLAPACK_INCLUDE_DIR) | ||||
if(ATLAS_CBLAS_INCLUDE_DIR STREQUAL ATLAS_CLAPACK_INCLUDE_DIR) | ||||
set(ATLAS_INCLUDE_DIR ${ATLAS_CBLAS_INCLUDE_DIR}) | ||||
endif() | ||||
endif() | ||||
set(ATLAS_NAMES) | set(ATLAS_NAMES) | |||
set(ATLAS_NAMES ${ATLAS_NAMES} tatlas) | set(ATLAS_NAMES ${ATLAS_NAMES} tatlas) | |||
set(ATLAS_NAMES ${ATLAS_NAMES} satlas) | set(ATLAS_NAMES ${ATLAS_NAMES} satlas) | |||
set(ATLAS_NAMES ${ATLAS_NAMES} atlas ) | set(ATLAS_NAMES ${ATLAS_NAMES} atlas ) | |||
set(ATLAS_TMP_LIBRARY) | set(ATLAS_TMP_LIBRARY) | |||
set(ATLAS_TMP_LIBRARIES) | set(ATLAS_TMP_LIBRARIES) | |||
foreach (ATLAS_NAME ${ATLAS_NAMES}) | foreach (ATLAS_NAME ${ATLAS_NAMES}) | |||
find_library(${ATLAS_NAME}_LIBRARY | find_library(${ATLAS_NAME}_LIBRARY | |||
skipping to change at line 44 | skipping to change at line 28 | |||
set(ATLAS_TMP_LIBRARIES ${ATLAS_TMP_LIBRARIES} ${ATLAS_TMP_LIBRARY}) | set(ATLAS_TMP_LIBRARIES ${ATLAS_TMP_LIBRARIES} ${ATLAS_TMP_LIBRARY}) | |||
endif() | endif() | |||
endforeach() | endforeach() | |||
# use only one library | # use only one library | |||
if(ATLAS_TMP_LIBRARIES) | if(ATLAS_TMP_LIBRARIES) | |||
list(GET ATLAS_TMP_LIBRARIES 0 ATLAS_LIBRARY) | list(GET ATLAS_TMP_LIBRARIES 0 ATLAS_LIBRARY) | |||
endif() | endif() | |||
if(ATLAS_LIBRARY AND ATLAS_INCLUDE_DIR) | if(ATLAS_LIBRARY) | |||
set(ATLAS_LIBRARIES ${ATLAS_LIBRARY}) | set(ATLAS_LIBRARIES ${ATLAS_LIBRARY}) | |||
set(ATLAS_FOUND "YES") | set(ATLAS_FOUND "YES") | |||
else() | else() | |||
set(ATLAS_FOUND "NO") | set(ATLAS_FOUND "NO") | |||
endif() | endif() | |||
if(ATLAS_FOUND) | if(ATLAS_FOUND) | |||
if(NOT ATLAS_FIND_QUIETLY) | if(NOT ATLAS_FIND_QUIETLY) | |||
message(STATUS "Found ATLAS: ${ATLAS_LIBRARIES}") | message(STATUS "Found ATLAS: ${ATLAS_LIBRARIES}") | |||
endif() | endif() | |||
else() | else() | |||
if(ATLAS_FIND_REQUIRED) | if(ATLAS_FIND_REQUIRED) | |||
message(FATAL_ERROR "Could not find ATLAS") | message(FATAL_ERROR "Could not find ATLAS") | |||
endif() | endif() | |||
endif() | endif() | |||
# mark_as_advanced(ATLAS_LIBRARY ATLAS_INCLUDE_DIR) | # mark_as_advanced(ATLAS_LIBRARY) | |||
End of changes. 3 change blocks. | ||||
19 lines changed or deleted | 1 lines changed or added |