From 41a624252ac9163e9bc04eda1bb99b528546d115 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 9 Dec 2021 14:24:17 +0100 Subject: [PATCH] check-header: fixes in BaseLib. --- BaseLib/CMakeLists.txt | 1 + BaseLib/DynamicSpan.h | 2 ++ scripts/cmake/Dependencies.cmake | 2 ++ 3 files changed, 5 insertions(+) diff --git a/BaseLib/CMakeLists.txt b/BaseLib/CMakeLists.txt index d6b0f56d76a..1ac8d1f646e 100644 --- a/BaseLib/CMakeLists.txt +++ b/BaseLib/CMakeLists.txt @@ -13,6 +13,7 @@ target_link_libraries( PUBLIC Boost::boost spdlog::spdlog std::filesystem + tclap $<$<BOOL:${MSVC}>:WinMM> # needed for timeGetTime $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::Xml> $<$<BOOL:${OGS_BUILD_GUI}>:Qt5::XmlPatterns> diff --git a/BaseLib/DynamicSpan.h b/BaseLib/DynamicSpan.h index 1a68801963c..139495c3e66 100644 --- a/BaseLib/DynamicSpan.h +++ b/BaseLib/DynamicSpan.h @@ -7,6 +7,8 @@ * http://www.opengeosys.org/project/license */ +#include <cstddef> + namespace BaseLib { template <typename T> diff --git a/scripts/cmake/Dependencies.cmake b/scripts/cmake/Dependencies.cmake index 3317f39b752..98a5dbf6106 100644 --- a/scripts/cmake/Dependencies.cmake +++ b/scripts/cmake/Dependencies.cmake @@ -150,6 +150,8 @@ CPMFindPackage( if(Boost_ADDED) add_library(Boost::boost INTERFACE IMPORTED) target_include_directories(Boost::boost INTERFACE "${Boost_SOURCE_DIR}") +else() + target_include_directories(Boost::boost INTERFACE "${Boost_INCLUDE_DIR}") endif() CPMFindPackage( -- GitLab