[Commits] SDL: commit 8f4dedc039190f5e734c47dcc4fc021b5793b659

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 28 21:03:47 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/d7a3aac08fc1
changeset: 12257:d7a3aac08fc1
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Sep 28 21:03:39 2018 -0700
description:
commit 8f4dedc039190f5e734c47dcc4fc021b5793b659
Author: Michał Janiszewski <janisozaur+signed at gmail.com>
Date:   Fri Sep 28 20:38:04 2018 +0200

    CMake: fix building tests on Linux

    In case where libunwind.h has been found, it will be used by compiler,
    but linker wasn't updated to reflect use of this new library.

diffstat:

 CMakeLists.txt |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 9f3949b8ec40 -r d7a3aac08fc1 CMakeLists.txt
--- a/CMakeLists.txt	Fri Sep 28 20:48:18 2018 -0700
+++ b/CMakeLists.txt	Fri Sep 28 21:03:39 2018 -0700
@@ -1059,6 +1059,12 @@
         include_directories(${IBUS_INCLUDE_DIRS})
         list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES})
       endif()
+      if(HAVE_LIBUNWIND_H)
+        # We've already found the header, so REQUIRE the lib to be present
+        pkg_search_module(UNWIND REQUIRED libunwind)
+        pkg_search_module(UNWIND_GENERIC REQUIRED libunwind-generic)
+        list(APPEND EXTRA_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES})
+      endif()
     endif()
 
     check_include_file("fcitx/frontend.h" HAVE_FCITX_FRONTEND_H)


More information about the commits mailing list