You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
932 B

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