1 2if (OPENBLAS_LIBRARIES) 3 set(OPENBLAS_FIND_QUIETLY TRUE) 4endif (OPENBLAS_LIBRARIES) 5 6find_file(OPENBLAS_LIBRARIES NAMES libopenblas.so libopenblas.so.0 PATHS /usr/lib /usr/lib64 $ENV{OPENBLASDIR} ${LIB_INSTALL_DIR}) 7find_library(OPENBLAS_LIBRARIES openblas PATHS $ENV{OPENBLASDIR} ${LIB_INSTALL_DIR}) 8 9if(OPENBLAS_LIBRARIES AND CMAKE_COMPILER_IS_GNUCXX) 10 set(OPENBLAS_LIBRARIES ${OPENBLAS_LIBRARIES} "-lpthread -lgfortran") 11endif() 12 13include(FindPackageHandleStandardArgs) 14find_package_handle_standard_args(OPENBLAS DEFAULT_MSG 15 OPENBLAS_LIBRARIES) 16 17mark_as_advanced(OPENBLAS_LIBRARIES) 18