From 907ba0e86a3cf7956e96257ab51c2d89c3c71069 Mon Sep 17 00:00:00 2001 From: Peter Donovan Date: Thu, 20 Jul 2023 21:13:58 -0700 Subject: [PATCH] If clock sync is on, link math. --- core/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 8c6aa919c..eb452f181 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -67,6 +67,13 @@ if(DEFINED FEDERATED_AUTHENTICATED) target_link_libraries(core PUBLIC OpenSSL::SSL) endif() +if(DEFINED _LF_CLOCK_SYNC_ON) + find_library(MATH_LIBRARY m) + if(MATH_LIBRARY) + target_link_libraries(core PUBLIC ${MATH_LIBRARY}) + endif() +endif() + # Link with thread library if(DEFINED LF_THREADED OR DEFINED LF_TRACE) find_package(Threads REQUIRED)