Skip to content

Commit

Permalink
update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Feb 15, 2024
1 parent 53db960 commit bc08cb9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@ set(CMAKE_CXX_FLAGS_DEBUG
CACHE STRING "Flags used by the C++ compiler during Debug builds."
FORCE)

set(CMAKE_CXX_FLAGS_RELEASE
"-O3 -march=native -mtune=native -DRICCATI_DEBUG=false"
CACHE STRING "Flags used by the C++ compiler during Release builds."
FORCE)
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set(CMAKE_CXX_FLAGS_RELEASE
"-O3 -march=native -mtune=native -DRICCATI_DEBUG=false"
CACHE STRING "Flags used by the C++ compiler during Release builds."
FORCE)
endif()

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})

Expand Down

0 comments on commit bc08cb9

Please sign in to comment.