Skip to content

Commit

Permalink
actually add the cmake script too
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiaholmquist committed May 5, 2024
1 parent 474bf6e commit ee2c6cc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/DefaultBuildFlags.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if (CMAKE_C_COMPILER_ID STREQUAL GNU)
set(CMAKE_C_FLAGS_DEBUG_INIT "-g -Og")
endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -Og")
endif()

string(REPLACE "-O2" "-O3" CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT}")
string(REPLACE "-O2" "-O3" CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT}")

0 comments on commit ee2c6cc

Please sign in to comment.