From 7f13a8b971709680ff277cb6d72483fa1dd2d0a4 Mon Sep 17 00:00:00 2001 From: David Lecomber Date: Wed, 23 Oct 2024 12:14:39 +0100 Subject: [PATCH] Fix for issue #966. Set boost options in CMakeLists.txt to not promote doubles to long doubles. Promotion incurs performance penalty on all platforms, and particularly aarch64. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d49ecd9..aec129e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,6 +259,9 @@ else() message(FATAL_ERROR "Your C++ compiler does not support C++14.") endif() + +list(APPEND TGT_COMPILE_FLAGS -DBOOST_MATH_PROMOTE_DOUBLE_POLICY=false) + if(DO_QUIET_MAKE) set(QUIET_MAKE "--silent") else()