Line | |
---|
1 |
|
---|
2 | if (ACML_LIBRARIES)
|
---|
3 | set(ACML_FIND_QUIETLY TRUE)
|
---|
4 | endif (ACML_LIBRARIES)
|
---|
5 |
|
---|
6 | find_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 |
|
---|
15 | find_file(ACML_LIBRARIES
|
---|
16 | NAMES
|
---|
17 | libacml_mp.so
|
---|
18 | PATHS
|
---|
19 | /usr/lib
|
---|
20 | $ENV{ACMLDIR}/lib
|
---|
21 | ${LIB_INSTALL_DIR}
|
---|
22 | )
|
---|
23 |
|
---|
24 | if(NOT ACML_LIBRARIES)
|
---|
25 | message(STATUS "Multi-threaded library not found, looking for single-threaded")
|
---|
26 | find_library(ACML_LIBRARIES
|
---|
27 | NAMES
|
---|
28 | acml acml_mv
|
---|
29 | PATHS
|
---|
30 | $ENV{ACMLDIR}/lib
|
---|
31 | $ENV{ACML_DIR}/lib
|
---|
32 | ${LIB_INSTALL_DIR}
|
---|
33 | )
|
---|
34 | find_file(ACML_LIBRARIES
|
---|
35 | libacml.so libacml_mv.so
|
---|
36 | PATHS
|
---|
37 | /usr/lib
|
---|
38 | $ENV{ACMLDIR}/lib
|
---|
39 | ${LIB_INSTALL_DIR}
|
---|
40 | )
|
---|
41 | endif()
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 |
|
---|
46 | include(FindPackageHandleStandardArgs)
|
---|
47 | find_package_handle_standard_args(ACML DEFAULT_MSG ACML_LIBRARIES)
|
---|
48 |
|
---|
49 | mark_as_advanced(ACML_LIBRARIES)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.