mirror of
https://github.com/worldforge/ember
synced 2026-08-13 16:23:06 -04:00
21 lines
676 B
CMake
21 lines
676 B
CMake
# - Locate unwind library
|
|
# Defines:
|
|
#
|
|
# UNWIND_FOUND
|
|
# UNWIND_INCLUDE_DIR
|
|
# UNWIND_INCLUDE_DIRS (not cached)
|
|
# UNWIND_LIBRARIES
|
|
# UNWIND_LIBRARY_DIRS (not cached)
|
|
|
|
find_path(UNWIND_INCLUDE_DIR unwind.h)
|
|
find_library(UNWIND_LIBRARIES NAMES unwind)
|
|
|
|
set(UNWIND_INCLUDE_DIRS ${UNWIND_INCLUDE_DIR})
|
|
get_filename_component(UNWIND_LIBRARY_DIRS ${UNWIND_LIBRARIES} PATH)
|
|
|
|
# handle the QUIETLY and REQUIRED arguments and set UNWIND_FOUND to TRUE if
|
|
# all listed variables are TRUE
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(unwind DEFAULT_MSG UNWIND_INCLUDE_DIR UNWIND_LIBRARIES)
|
|
|
|
mark_as_advanced(UNWIND_FOUND UNWIND_INCLUDE_DIR UNWIND_LIBRARIES)
|