From 8f2e4e39cb35c3aeeca1c5c647a8335a803ea707 Mon Sep 17 00:00:00 2001 From: Jacob Keeler Date: Mon, 1 Apr 2019 14:32:00 -0400 Subject: Fix missing 3rd-party dependencies in CMake files --- src/appMain/CMakeLists.txt | 1 + src/appMain/main.cc | 2 ++ src/components/protocol_handler/CMakeLists.txt | 1 + 3 files changed, 4 insertions(+) diff --git a/src/appMain/CMakeLists.txt b/src/appMain/CMakeLists.txt index fe9a6af3f7..d543280d75 100644 --- a/src/appMain/CMakeLists.txt +++ b/src/appMain/CMakeLists.txt @@ -76,6 +76,7 @@ include_directories( # Create object library add_library("LowVoltageHandlerObjLibrary" OBJECT ${CMAKE_CURRENT_SOURCE_DIR}/low_voltage_signals_handler.cc ) +add_dependencies("LowVoltageHandlerObjLibrary" Boost) set (SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/main.cc diff --git a/src/appMain/main.cc b/src/appMain/main.cc index 752cfb7bb9..4e91b91216 100644 --- a/src/appMain/main.cc +++ b/src/appMain/main.cc @@ -43,7 +43,9 @@ // ---------------------------------------------------------------------------- +#ifdef ENABLE_LOG #include "utils/log_message_loop_thread.h" +#endif // ENABLE_LOG #include "utils/logger.h" #include "appMain/life_cycle_impl.h" diff --git a/src/components/protocol_handler/CMakeLists.txt b/src/components/protocol_handler/CMakeLists.txt index ff8678b826..ed3aaaf24c 100644 --- a/src/components/protocol_handler/CMakeLists.txt +++ b/src/components/protocol_handler/CMakeLists.txt @@ -65,6 +65,7 @@ endforeach() add_library(ProtocolHandler ${SOURCES}) +add_dependencies(ProtocolHandler libbson) target_link_libraries(ProtocolHandler ${LIBRARIES}) if(BUILD_TESTS) -- cgit v1.2.1