CMakeLists.txt
changeset 12257 d7a3aac08fc1
parent 12249 4f358c108da1
child 12258 231245d461a2
equal deleted inserted replaced
12256:9f3949b8ec40 12257:d7a3aac08fc1
  1057       if(IBUS_FOUND)
  1057       if(IBUS_FOUND)
  1058         set(HAVE_IBUS_IBUS_H TRUE)
  1058         set(HAVE_IBUS_IBUS_H TRUE)
  1059         include_directories(${IBUS_INCLUDE_DIRS})
  1059         include_directories(${IBUS_INCLUDE_DIRS})
  1060         list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES})
  1060         list(APPEND EXTRA_LIBS ${IBUS_LIBRARIES})
  1061       endif()
  1061       endif()
       
  1062       if(HAVE_LIBUNWIND_H)
       
  1063         # We've already found the header, so REQUIRE the lib to be present
       
  1064         pkg_search_module(UNWIND REQUIRED libunwind)
       
  1065         pkg_search_module(UNWIND_GENERIC REQUIRED libunwind-generic)
       
  1066         list(APPEND EXTRA_LIBS ${UNWIND_LIBRARIES} ${UNWIND_GENERIC_LIBRARIES})
       
  1067       endif()
  1062     endif()
  1068     endif()
  1063 
  1069 
  1064     check_include_file("fcitx/frontend.h" HAVE_FCITX_FRONTEND_H)
  1070     check_include_file("fcitx/frontend.h" HAVE_FCITX_FRONTEND_H)
  1065   endif()
  1071   endif()
  1066 
  1072