1 2if (ACML_LIBRARIES) 3 set(ACML_FIND_QUIETLY TRUE) 4endif (ACML_LIBRARIES) 5 6find_library(ACML_LIBRARIES 7 NAMES 8 acml_mp acml_mv 9 PATHS 10 $ENV{ACMLDIR}/lib 11 $ENV{ACML_DIR}/lib 12 ${LIB_INSTALL_DIR} 13) 14 15find_file(ACML_LIBRARIES 16 NAMES 17 libacml_mp.so 18 PATHS 19 /usr/lib 20 /usr/lib64 21 $ENV{ACMLDIR}/lib 22 ${LIB_INSTALL_DIR} 23) 24 25if(NOT ACML_LIBRARIES) 26 message(STATUS "Multi-threaded library not found, looking for single-threaded") 27 find_library(ACML_LIBRARIES 28 NAMES 29 acml acml_mv 30 PATHS 31 $ENV{ACMLDIR}/lib 32 $ENV{ACML_DIR}/lib 33 ${LIB_INSTALL_DIR} 34 ) 35 find_file(ACML_LIBRARIES 36 libacml.so libacml_mv.so 37 PATHS 38 /usr/lib 39 /usr/lib64 40 $ENV{ACMLDIR}/lib 41 ${LIB_INSTALL_DIR} 42 ) 43endif() 44 45 46 47 48include(FindPackageHandleStandardArgs) 49find_package_handle_standard_args(ACML DEFAULT_MSG ACML_LIBRARIES) 50 51mark_as_advanced(ACML_LIBRARIES) 52