diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2016-12-08 12:48:21 +0100 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2016-12-08 13:51:36 +0100 |
commit | 579bd447c1391ebca4924c733e3a183ab0dff8f1 (patch) | |
tree | 99f2dfb8ff5fa8e58fde686f472c7b10a7736351 /src/crash-stack | |
parent | 9c3bf3fb2f53e171a2c46a43ef34c312c9878604 (diff) | |
download | crash-worker-579bd447c1391ebca4924c733e3a183ab0dff8f1.tar.gz crash-worker-579bd447c1391ebca4924c733e3a183ab0dff8f1.tar.bz2 crash-worker-579bd447c1391ebca4924c733e3a183ab0dff8f1.zip |
crash-stack: link against libebl conditionally
Link against libebl only if crash-stack is built with support for
core dump files.
Rewrite conditional building of sys_assert to use %bcond_with.
Change-Id: I50edbd417a5426a43da3b9c0e912933a7db95f4b
Diffstat (limited to 'src/crash-stack')
-rw-r--r-- | src/crash-stack/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crash-stack/CMakeLists.txt b/src/crash-stack/CMakeLists.txt index 90ec07e..ebe8121 100644 --- a/src/crash-stack/CMakeLists.txt +++ b/src/crash-stack/CMakeLists.txt @@ -30,10 +30,11 @@ endif() # Set compilation options for core dump support if (${WITH_CORE_DUMP} STREQUAL "ON") set_property(TARGET ${CRASH_STACK_BIN} APPEND_STRING PROPERTY COMPILE_FLAGS " -DWITH_CORE_DUMP") + find_library(EBL_LIBRARY NAMES ebl) endif() # Linking -target_link_libraries(${CRASH_STACK_BIN} dw elf ebl dl stdc++) +target_link_libraries(${CRASH_STACK_BIN} ${EBL_LIBRARY} dw elf dl stdc++) # Installing install(TARGETS ${CRASH_STACK_BIN} DESTINATION libexec) |