From bd9811ff579a0482bfd7d40b1149bcef40ad3d71 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Fri, 20 Sep 2013 15:37:17 +0100 Subject: [PATCH] cmake: Link ${LIBBACKTRACE_LIBRARIES} once. --- CMakeLists.txt | 3 +++ cli/CMakeLists.txt | 1 - gui/CMakeLists.txt | 1 - retrace/CMakeLists.txt | 1 - wrappers/CMakeLists.txt | 2 -- 5 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 15fff3f..4566db5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -339,6 +339,9 @@ set_target_properties (common PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}" ) +target_link_libraries (common + ${LIBBACKTRACE_LIBRARIES} +) if (ANDROID) target_link_libraries (common log diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index e2b4d72..299c398 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -32,7 +32,6 @@ target_link_libraries (apitrace ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} ${GETOPT_LIBRARIES} - ${LIBBACKTRACE_LIBRARIES} ) if (NOT CMAKE_CROSSCOMPILING) diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index a36ab47..ad13475 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -79,7 +79,6 @@ target_link_libraries (qapitrace common ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} - ${LIBBACKTRACE_LIBRARIES} ${QJSON_LIBRARIES} ${QT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} diff --git a/retrace/CMakeLists.txt b/retrace/CMakeLists.txt index fcb8f18..78cceae 100644 --- a/retrace/CMakeLists.txt +++ b/retrace/CMakeLists.txt @@ -46,7 +46,6 @@ target_link_libraries (retrace_common ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} ${GETOPT_LIBRARIES} - ${LIBBACKTRACE_LIBRARIES} ) add_library (glretrace_common STATIC diff --git a/wrappers/CMakeLists.txt b/wrappers/CMakeLists.txt index 961a74c..f48b5a8 100644 --- a/wrappers/CMakeLists.txt +++ b/wrappers/CMakeLists.txt @@ -421,7 +421,6 @@ elseif (X11_FOUND) common ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} - ${LIBBACKTRACE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} dl ) @@ -471,7 +470,6 @@ if (ENABLE_EGL AND NOT WIN32 AND NOT APPLE) common ${ZLIB_LIBRARIES} ${SNAPPY_LIBRARIES} - ${LIBBACKTRACE_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} dl ) -- 2.43.0