From ca061b91dcd335617ddd75bdf70cec32e888ab10 Mon Sep 17 00:00:00 2001 From: Giulia Lafratta <82679542+glafratta@users.noreply.github.com> Date: Tue, 26 Aug 2025 15:28:39 +0100 Subject: [PATCH 1/2] added pthread to allow to compile on Debian Bullseye --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34ead91..1905cf5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,13 +12,13 @@ enable_testing() add_library(cpptimer INTERFACE) add_executable(demo demo.cpp) -TARGET_LINK_LIBRARIES(demo cpptimer) +TARGET_LINK_LIBRARIES(demo cpptimer pthread) add_executable(demo_runnable demo_runnable.cpp) -TARGET_LINK_LIBRARIES(demo_runnable cpptimer) +TARGET_LINK_LIBRARIES(demo_runnable cpptimer pthread) add_executable(demo_stdfunccallback demo_stdfunccallback.cpp) -TARGET_LINK_LIBRARIES(demo_stdfunccallback cpptimer) +TARGET_LINK_LIBRARIES(demo_stdfunccallback cpptimer pthread) add_subdirectory(test) From 49e0eb6a34c1435221c87e522cf9c13786d325bf Mon Sep 17 00:00:00 2001 From: Giulia Lafratta <82679542+glafratta@users.noreply.github.com> Date: Tue, 26 Aug 2025 15:29:29 +0100 Subject: [PATCH 2/2] adding linking with pthread to allow compile on debian bullseye --- test/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 586cb31..08bb97a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -5,21 +5,21 @@ include_directories( ) add_executable (test_startstop startstop.cpp) -TARGET_LINK_LIBRARIES(test_startstop cpptimer) +TARGET_LINK_LIBRARIES(test_startstop cpptimer pthread) add_test(TestStartStop test_startstop) add_executable (test_twotimers twotimers.cpp) -TARGET_LINK_LIBRARIES(test_twotimers cpptimer) +TARGET_LINK_LIBRARIES(test_twotimers cpptimer pthread) add_test(TestTwotimers test_twotimers) add_executable (test_startstop_ms startstop_ms.cpp) -TARGET_LINK_LIBRARIES(test_startstop_ms cpptimer) +TARGET_LINK_LIBRARIES(test_startstop_ms cpptimer pthread) add_test(TestStartStop_ms test_startstop_ms) add_executable (test_twotimers_ms twotimers_ms.cpp) -TARGET_LINK_LIBRARIES(test_twotimers_ms cpptimer) +TARGET_LINK_LIBRARIES(test_twotimers_ms cpptimer pthread) add_test(TestTwotimers_ms test_twotimers_ms) add_executable (test_oneshot oneshot.cpp) -TARGET_LINK_LIBRARIES(test_oneshot cpptimer) +TARGET_LINK_LIBRARIES(test_oneshot cpptimer pthread) add_test(TestOneShot test_oneshot)