From 8e64a1cf7009bbe7b89dc8bcb7abd00e39815b0b Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Wed, 7 Jun 2023 10:39:51 +0200 Subject: cmake: Replace add_defitions with superseding alternatives --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 712aa714..a6a05501 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,12 +19,10 @@ set(Ledger_TEST_TIMEZONE "America/Chicago") enable_testing() -add_definitions( - -std=c++11 - -DBOOST_FILESYSTEM_NO_DEPRECATED -) +add_compile_definitions(BOOST_FILESYSTEM_NO_DEPRECATED) +add_compile_options(-std=c++11) if (CYGWIN) - add_definitions(-U__STRICT_ANSI__) + add_compile_options(-U__STRICT_ANSI__) endif() ######################################################################## -- cgit v1.2.3