blob: 757b99a5f68db637813666fc51831a85b323dc64 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001Do not error when libunwind-generic is not found, Not all
2implementations of libunwind will provide this library therefore
3do not make it hard error if its not found.
4
5Upstream-Status: Submitted [https://github.com/libsdl-org/SDL/pull/5194]
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7
8--- a/CMakeLists.txt
9+++ b/CMakeLists.txt
10@@ -1358,7 +1358,7 @@ elseif(UNIX AND NOT APPLE AND NOT ANDROI
11 if(HAVE_LIBUNWIND_H)
12 # We've already found the header, so REQUIRE the lib to be present
13 pkg_search_module(UNWIND REQUIRED libunwind)
14- pkg_search_module(UNWIND_GENERIC REQUIRED libunwind-generic)
15+ pkg_search_module(UNWIND_GENERIC libunwind-generic)
16 list(APPEND EXTRA_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES})
17 endif()
18 endif()