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.

49 lines
900 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. $ENV{ACMLDIR}/lib
  18. ${LIB_INSTALL_DIR}
  19. )
  20. if(NOT ACML_LIBRARIES)
  21. message(STATUS "Multi-threaded library not found, looking for single-threaded")
  22. find_library(ACML_LIBRARIES
  23. NAMES
  24. acml acml_mv
  25. PATHS
  26. $ENV{ACMLDIR}/lib
  27. $ENV{ACML_DIR}/lib
  28. ${LIB_INSTALL_DIR}
  29. )
  30. find_file(ACML_LIBRARIES
  31. libacml.so libacml_mv.so
  32. PATHS
  33. /usr/lib
  34. $ENV{ACMLDIR}/lib
  35. ${LIB_INSTALL_DIR}
  36. )
  37. endif()
  38. include(FindPackageHandleStandardArgs)
  39. find_package_handle_standard_args(ACML DEFAULT_MSG ACML_LIBRARIES)
  40. mark_as_advanced(ACML_LIBRARIES)