summaryrefslogtreecommitdiff
path: root/thirdparty
diff options
context:
space:
mode:
authorJose Fonseca <jfonseca@vmware.com>2016-01-27 12:12:32 +0000
committerJose Fonseca <jfonseca@vmware.com>2016-01-27 12:33:08 +0000
commite11395e9a4afddfc68b40facb1007dd303ee24f6 (patch)
treeb06a6957a5453b238f834aac37f1e6b9001628db /thirdparty
parent7be9f4204c989fcfd2e78fdc8b42428b981a7928 (diff)
libbacktrace: Always build and run btest.
Diffstat (limited to 'thirdparty')
-rw-r--r--thirdparty/libbacktrace/CMakeLists.txt13
1 files changed, 5 insertions, 8 deletions
diff --git a/thirdparty/libbacktrace/CMakeLists.txt b/thirdparty/libbacktrace/CMakeLists.txt
index 02415720..2a4a685e 100644
--- a/thirdparty/libbacktrace/CMakeLists.txt
+++ b/thirdparty/libbacktrace/CMakeLists.txt
@@ -143,11 +143,8 @@ add_convenience_library (backtrace EXCLUDE_FROM_ALL
state.c
)
-set (ENABLE_LIBBACKTRACE_TEST false CACHE BOOL "Enable libbacktrace testing")
-if (ENABLE_LIBBACKTRACE_TEST)
- enable_testing ()
- add_executable (btest btest.c)
- set_property (SOURCE btest.c PROPERTY COMPILE_FLAGS "-g")
- target_link_libraries (btest backtrace)
- add_test (test-libbacktrace btest)
-endif ()
+add_executable (btest btest.c)
+set_target_properties (btest PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS_DEBUG}")
+target_link_libraries (btest backtrace)
+add_dependencies (check btest)
+add_test (libbacktrace_btest btest)