From 09d7d17dd9a722632e885ac72b63053ca196c85b Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Thu, 16 Feb 2023 08:53:42 +0100 Subject: Enforce use of non-deprecated boost::filesystem API For details see https://www.boost.org/doc/libs/1_81_0/libs/filesystem/doc/deprecated.html --- CMakeLists.txt | 5 ++++- src/system.hh.in | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 394cf3eb..96840934 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,10 @@ endif() enable_testing() -add_definitions(-std=c++11) +add_definitions( + -std=c++11 + -DBOOST_FILESYSTEM_NO_DEPRECATED +) if (CYGWIN) add_definitions(-U__STRICT_ANSI__) endif() diff --git a/src/system.hh.in b/src/system.hh.in index f473bb8b..60ea0fd8 100644 --- a/src/system.hh.in +++ b/src/system.hh.in @@ -148,6 +148,7 @@ #include #include #include +#include #include #include -- cgit v1.2.3