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.

65 lines
1.3 KiB

  1. if (MKL_LIBRARIES)
  2. set(MKL_FIND_QUIETLY TRUE)
  3. endif (MKL_LIBRARIES)
  4. if(CMAKE_MINOR_VERSION GREATER 4)
  5. if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
  6. find_library(MKL_LIBRARIES
  7. mkl_core
  8. PATHS
  9. $ENV{MKLLIB}
  10. /opt/intel/mkl/*/lib/em64t
  11. /opt/intel/Compiler/*/*/mkl/lib/em64t
  12. ${LIB_INSTALL_DIR}
  13. )
  14. find_library(MKL_GUIDE
  15. guide
  16. PATHS
  17. $ENV{MKLLIB}
  18. /opt/intel/mkl/*/lib/em64t
  19. /opt/intel/Compiler/*/*/mkl/lib/em64t
  20. /opt/intel/Compiler/*/*/lib/intel64
  21. ${LIB_INSTALL_DIR}
  22. )
  23. if(MKL_LIBRARIES AND MKL_GUIDE)
  24. set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel_lp64 mkl_sequential ${MKL_GUIDE} pthread)
  25. endif()
  26. else(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
  27. find_library(MKL_LIBRARIES
  28. mkl_core
  29. PATHS
  30. $ENV{MKLLIB}
  31. /opt/intel/mkl/*/lib/32
  32. /opt/intel/Compiler/*/*/mkl/lib/32
  33. ${LIB_INSTALL_DIR}
  34. )
  35. find_library(MKL_GUIDE
  36. guide
  37. PATHS
  38. $ENV{MKLLIB}
  39. /opt/intel/mkl/*/lib/32
  40. /opt/intel/Compiler/*/*/mkl/lib/32
  41. /opt/intel/Compiler/*/*/lib/intel32
  42. ${LIB_INSTALL_DIR}
  43. )
  44. if(MKL_LIBRARIES AND MKL_GUIDE)
  45. set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel mkl_sequential ${MKL_GUIDE} pthread)
  46. endif()
  47. endif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
  48. endif(CMAKE_MINOR_VERSION GREATER 4)
  49. include(FindPackageHandleStandardArgs)
  50. find_package_handle_standard_args(MKL DEFAULT_MSG MKL_LIBRARIES)
  51. mark_as_advanced(MKL_LIBRARIES)