source: pacpussensors/trunk/Vislab/lib3dv-1.2.0/lib3dv/eigen/bench/btl/cmake/FindACML.cmake

Last change on this file was 136, checked in by ldecherf, 8 years ago

Doc

File size: 900 bytes
Line 
1
2if (ACML_LIBRARIES)
3 set(ACML_FIND_QUIETLY TRUE)
4endif (ACML_LIBRARIES)
5
6find_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
15find_file(ACML_LIBRARIES
16 NAMES
17 libacml_mp.so
18 PATHS
19 /usr/lib
20 $ENV{ACMLDIR}/lib
21 ${LIB_INSTALL_DIR}
22)
23
24if(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 )
41endif()
42
43
44
45
46include(FindPackageHandleStandardArgs)
47find_package_handle_standard_args(ACML DEFAULT_MSG ACML_LIBRARIES)
48
49mark_as_advanced(ACML_LIBRARIES)
Note: See TracBrowser for help on using the repository browser.