From ab4edf035da9d298501444398da29f25f3687637 Mon Sep 17 00:00:00 2001 From: Valerio Bertone Date: Tue, 23 Apr 2024 10:50:46 +0200 Subject: [PATCH] Including optimisation flag (-O3) in CMakeFiles.txt to make sure optimisation is enforced on any machine (thanks to Alexander Karlberg for spotting it) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 293a123f7..2b0146f62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,8 @@ project(apfel CXX Fortran) set(CMAKE_BUILD_TYPE Release) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fPIC") -set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fPIC") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fPIC -O3") +set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fPIC -O3") if (NOT DEFINED CMAKE_MACOSX_RPATH) set(CMAKE_MACOSX_RPATH 0)