From fe18bf01d57d5cf5f3e83c20399d785e4559e92b Mon Sep 17 00:00:00 2001 From: Martin Shetty <1972005+martukas@users.noreply.github.com> Date: Wed, 29 Sep 2021 06:04:29 -0700 Subject: [PATCH] "updated conan packages and some code to boot; updates #255" --- cmake/CompilerConfig.cmake | 4 ++-- conanfile.txt | 8 ++++---- source/CMakeLists.txt | 2 +- source/consumers/TOF1DCorrelate.h | 1 + source/consumers/TOFVal2DCorrelate.h | 1 + source/core/Project.cpp | 2 ++ source/core/util/logger.h | 1 + source/daqlite/CMakeLists.txt | 2 +- source/daqlite/WorkerThread.h | 1 + source/gui/CMakeLists.txt | 2 +- 10 files changed, 15 insertions(+), 9 deletions(-) diff --git a/cmake/CompilerConfig.cmake b/cmake/CompilerConfig.cmake index 197a9120..fb15d215 100644 --- a/cmake/CompilerConfig.cmake +++ b/cmake/CompilerConfig.cmake @@ -1,8 +1,8 @@ # C++ standard set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) -if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 14) - set(CMAKE_CXX_STANDARD 14) +if (NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 17) + set(CMAKE_CXX_STANDARD 17) endif () if (CMAKE_CXX_COMPILER_ID MATCHES GNU) diff --git a/conanfile.txt b/conanfile.txt index 681f19ae..10f6b1d2 100644 --- a/conanfile.txt +++ b/conanfile.txt @@ -1,12 +1,12 @@ [requires] cli11/1.9.1 -date/27d1e1e@ess-dmsc/stable +date/2.4.1 eigen/3.3.9 -fmt/5.2.0@bincrafters/stable +fmt/6.2.0 gtest/1.10.0 -h5cpp/0.3.3@ess-dmsc/stable +h5cpp/0.4.0-dm2@ess-dmsc/stable nlohmann_json/3.9.1 -librdkafka/1.6.0 +librdkafka/1.5.0@ess-dmsc/stable logical-geometry/705ea61@ess-dmsc/stable qplot/2ffc74f@ess-dmsc/stable Qt-Color-Widgets/5e19e67@ess-dmsc/testing diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 8bbe9bd4..15e6630b 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -3,7 +3,7 @@ include(BuildInfo) find_package(date REQUIRED) find_package(fmt REQUIRED) -find_package(h5cpp 0.1.0 REQUIRED) +find_package(h5cpp 0.4.0 REQUIRED) find_package(Threads REQUIRED) add_definitions("-DGRAYLOG") diff --git a/source/consumers/TOF1DCorrelate.h b/source/consumers/TOF1DCorrelate.h index 1c094a7d..4da461e3 100644 --- a/source/consumers/TOF1DCorrelate.h +++ b/source/consumers/TOF1DCorrelate.h @@ -1,6 +1,7 @@ #pragma once #include +#include namespace DAQuiri { diff --git a/source/consumers/TOFVal2DCorrelate.h b/source/consumers/TOFVal2DCorrelate.h index fcd03895..152db0cd 100644 --- a/source/consumers/TOFVal2DCorrelate.h +++ b/source/consumers/TOFVal2DCorrelate.h @@ -2,6 +2,7 @@ #include #include +#include namespace DAQuiri { diff --git a/source/core/Project.cpp b/source/core/Project.cpp index d1d139a4..3b5a9ff3 100644 --- a/source/core/Project.cpp +++ b/source/core/Project.cpp @@ -4,6 +4,8 @@ #include #include +#include + #ifdef BUILD_TIME #include "build_time.h" #endif diff --git a/source/core/util/logger.h b/source/core/util/logger.h index 70086445..9599ba60 100644 --- a/source/core/util/logger.h +++ b/source/core/util/logger.h @@ -15,6 +15,7 @@ #include #include +#include /// Somehow spdlog fails to bring it along on its own #include #pragma GCC system_header diff --git a/source/daqlite/CMakeLists.txt b/source/daqlite/CMakeLists.txt index c7110434..51ae302f 100644 --- a/source/daqlite/CMakeLists.txt +++ b/source/daqlite/CMakeLists.txt @@ -42,6 +42,6 @@ target_link_libraries( PRIVATE RdKafka::rdkafka++ PRIVATE RdKafka::rdkafka QPlot - QtColorWidgets-Qt52 + QtColorWidgets Qt5::Widgets ) diff --git a/source/daqlite/WorkerThread.h b/source/daqlite/WorkerThread.h index 2adaef07..f7177324 100644 --- a/source/daqlite/WorkerThread.h +++ b/source/daqlite/WorkerThread.h @@ -14,6 +14,7 @@ #include #include +#include #include class WorkerThread : public QThread { diff --git a/source/gui/CMakeLists.txt b/source/gui/CMakeLists.txt index 6aa7cb25..ec206414 100644 --- a/source/gui/CMakeLists.txt +++ b/source/gui/CMakeLists.txt @@ -60,7 +60,7 @@ target_link_libraries( ${PROJECT_NAME}_producers ${PROJECT_NAME}_consumers QPlot - QtColorWidgets-Qt52 + QtColorWidgets Qt5::Widgets Qt5::PrintSupport Qt5::Network