#
# Search for the header file
-#
+#
find_path(PATH_LIBUNWIND_H "libunwind.h"
HINTS
if(PATH_LIBUNWIND_H)
string(REGEX REPLACE "/libunwind.h" "" PATH_LIBUNWIND_H "${PATH_LIBUNWIND_H}")
message(" Found libunwind.h in ${PATH_LIBUNWIND_H}")
- include_directories(${PATH_LIBUNWIND_H})
+ include_directories(${PATH_LIBUNWIND_H})
else()
message(" NOT FOUND libunwind.h")
SET(HAVE_LIBUNWIND 0)
string(REGEX REPLACE "/lib${component}.*[.]${LIB_EXE}$" "" PATH_LIBUNWIND_LIB_${component} "${PATH_LIBUNWIND_LIB_${component}}")
message(" Found lib${component}.${LIB_EXE} in ${PATH_LIBUNWIND_LIB_${component}}")
link_directories(${PATH_LIBUNWIND_LIB_${component}})
-
+
if(${component} STREQUAL "unwind" AND APPLE)
# Apple forbids to link directly against its libunwind implementation
# So let's comply to that stupid restriction and link against the System framework
#
# Conclude and cleanup
-#
+#
if(HAVE_LIBUNWIND)
message(STATUS "Dependencies induced by libunwind: ${LIBUNWIND_LIBRARIES}")
else()