You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmkr/cmake/O2.cmake

6 lines
186 B

# Modify compile flags to change optimization level from O3 to O2
if(MSVC)
set(CMAKE_CXX_FLAGS_RELEASE "/Od /Ob2 /DNDEBUG")
else()
set(CMAKE_CXX_FLAGS_RELEASE "-O2")
endif()