From a81ec4f3c9823f8272520590d0f8575497c441f1 Mon Sep 17 00:00:00 2001 From: Yacoub Belaoura Date: Mon, 22 Feb 2021 17:33:16 +0100 Subject: [PATCH] fix compile error for cnutil on linux fix compile error for cnutil on linux "undefined reference to `boost::chrono::steady_clock::now()'" --- cnutil/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cnutil/CMakeLists.txt b/cnutil/CMakeLists.txt index 198d963..314b52d 100644 --- a/cnutil/CMakeLists.txt +++ b/cnutil/CMakeLists.txt @@ -4,7 +4,7 @@ project(assembler C ASM) set(CXXLIB "cnutil") find_package(OpenSSL REQUIRED) -find_package(Boost COMPONENTS thread system program_options date_time filesystem REQUIRED) +find_package(Boost COMPONENTS thread system program_options date_time chrono filesystem REQUIRED) # Flags set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -D_GNU_SOURCE -maes") @@ -85,6 +85,7 @@ target_link_libraries(${CXXLIB} ${Boost_SYSTEM_LIBRARY} ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_DATE_TIME_LIBRARY} + ${Boost_CHRONO_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} OpenSSL::SSL -) \ No newline at end of file +)