Line | |
---|
1 |
|
---|
2 | if (MKL_LIBRARIES)
|
---|
3 | set(MKL_FIND_QUIETLY TRUE)
|
---|
4 | endif (MKL_LIBRARIES)
|
---|
5 |
|
---|
6 | if(CMAKE_MINOR_VERSION GREATER 4)
|
---|
7 |
|
---|
8 | if(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
---|
9 |
|
---|
10 | find_library(MKL_LIBRARIES
|
---|
11 | mkl_core
|
---|
12 | PATHS
|
---|
13 | $ENV{MKLLIB}
|
---|
14 | /opt/intel/mkl/*/lib/em64t
|
---|
15 | /opt/intel/Compiler/*/*/mkl/lib/em64t
|
---|
16 | ${LIB_INSTALL_DIR}
|
---|
17 | )
|
---|
18 |
|
---|
19 | find_library(MKL_GUIDE
|
---|
20 | guide
|
---|
21 | PATHS
|
---|
22 | $ENV{MKLLIB}
|
---|
23 | /opt/intel/mkl/*/lib/em64t
|
---|
24 | /opt/intel/Compiler/*/*/mkl/lib/em64t
|
---|
25 | /opt/intel/Compiler/*/*/lib/intel64
|
---|
26 | ${LIB_INSTALL_DIR}
|
---|
27 | )
|
---|
28 |
|
---|
29 | if(MKL_LIBRARIES AND MKL_GUIDE)
|
---|
30 | set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel_lp64 mkl_sequential ${MKL_GUIDE} pthread)
|
---|
31 | endif()
|
---|
32 |
|
---|
33 | else(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
---|
34 |
|
---|
35 | find_library(MKL_LIBRARIES
|
---|
36 | mkl_core
|
---|
37 | PATHS
|
---|
38 | $ENV{MKLLIB}
|
---|
39 | /opt/intel/mkl/*/lib/32
|
---|
40 | /opt/intel/Compiler/*/*/mkl/lib/32
|
---|
41 | ${LIB_INSTALL_DIR}
|
---|
42 | )
|
---|
43 |
|
---|
44 | find_library(MKL_GUIDE
|
---|
45 | guide
|
---|
46 | PATHS
|
---|
47 | $ENV{MKLLIB}
|
---|
48 | /opt/intel/mkl/*/lib/32
|
---|
49 | /opt/intel/Compiler/*/*/mkl/lib/32
|
---|
50 | /opt/intel/Compiler/*/*/lib/intel32
|
---|
51 | ${LIB_INSTALL_DIR}
|
---|
52 | )
|
---|
53 |
|
---|
54 | if(MKL_LIBRARIES AND MKL_GUIDE)
|
---|
55 | set(MKL_LIBRARIES ${MKL_LIBRARIES} mkl_intel mkl_sequential ${MKL_GUIDE} pthread)
|
---|
56 | endif()
|
---|
57 |
|
---|
58 | endif(${CMAKE_HOST_SYSTEM_PROCESSOR} STREQUAL "x86_64")
|
---|
59 |
|
---|
60 | endif(CMAKE_MINOR_VERSION GREATER 4)
|
---|
61 |
|
---|
62 | include(FindPackageHandleStandardArgs)
|
---|
63 | find_package_handle_standard_args(MKL DEFAULT_MSG MKL_LIBRARIES)
|
---|
64 |
|
---|
65 | mark_as_advanced(MKL_LIBRARIES)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.