Skip to content

Commit

Permalink
Including optimisation flag (-O3) in CMakeFiles.txt to make sure opti…
Browse files Browse the repository at this point in the history
…misation is enforced on any machine (thanks to Alexander Karlberg for spotting it)
  • Loading branch information
vbertone committed Apr 23, 2024
1 parent eb97f01 commit ab4edf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ab4edf0

Please sign in to comment.