Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | Do not error when libunwind-generic is not found, Not all |
| 2 | implementations of libunwind will provide this library therefore |
| 3 | do not make it hard error if its not found. |
| 4 | |
| 5 | Upstream-Status: Submitted [https://github.com/libsdl-org/SDL/pull/5194] |
| 6 | Signed-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() |