Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 29 lines (22 sloc) 0.778 kB
b7aa3cf @sgolemon Add CMake rule to find new dependency libunwind
sgolemon authored
1 #
2 # $Id$
3 #
4 # - Find libunwind
5 # Find libunwind
6 #
7 # LIBUNWIND_INCLUDE_DIR - where to find unwind.h and libunwind.h
8 # LIBUNWIND_LIBRARY - List of libraries when using libunwind
9 # LIBUNWIND_FOUND - True if libunwind found.
10
11
12 if(LIBUNWIND_INCLUDE_DIR)
13 # Already in cache, be silent
14 SET(LIBUNWIND_FIND_QUIETLY TRUE)
15 endif()
16
17 FIND_PATH(LIBUNWIND_INCLUDE_DIR libunwind.h)
18 if(NOT EXISTS "${LIBUNWIND_INCLUDE_DIR}/unwind.h")
19 message(FATAL_ERROR "libunwind.h found without matching unwind.h")
20 SET(LIBUNWIND_INCLUDE_DIR "")
21 endif()
22
23 FIND_LIBRARY(LIBUNWIND_LIBRARY unwind)
24
25 INCLUDE(FindPackageHandleStandardArgs)
26 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBUNWIND DEFAULT_MSG LIBUNWIND_LIBRARY LIBUNWIND_INCLUDE_DIR)
27
28 MARK_AS_ADVANCED(LIBUNWIND_LIBRARY LIBUNWIND_INCLUDE_DIR)
Something went wrong with that request. Please try again.