| 1 |
if (LIBD_DEMANGLE_LIBRARIES) |
| 2 |
set (LibDDemangle_FIND_QUIETLY TRUE) |
| 3 |
endif() |
| 4 |
|
| 5 |
find_library(LIBD_DEMANGLE_LIBRARIES |
| 6 |
NAMES |
| 7 |
d_demangle |
| 8 |
PATHS |
| 9 |
/usr/lib |
| 10 |
/usr/local/lib |
| 11 |
/opt/local/lib |
| 12 |
/sw/lib |
| 13 |
ENV LIBRARY_PATH |
| 14 |
ENV LD_LIBRARY_PATH) |
| 15 |
|
| 16 |
include (FindPackageHandleStandardArgs) |
| 17 |
|
| 18 |
# handle the QUIETLY and REQUIRED arguments and set LIBRUSTC_DEMANGLE_FOUND to TRUE if all listed variables are TRUE |
| 19 |
find_package_handle_standard_args(LibDDemangle DEFAULT_MSG |
| 20 |
LIBD_DEMANGLE_LIBRARIES) |
| 21 |
|
| 22 |
mark_as_advanced(LIBD_DEMANGLE_LIBRARIES) |