Enable optimizations

This commit is contained in:
Yuriy Skalko 2020-06-05 13:35:28 +03:00
parent ae5a8de6ea
commit b4cd7e9d32

View File

@ -714,9 +714,9 @@ else()
set(CMAKE_CXX_FLAGS "${LYX_CXX_FLAGS} -fno-strict-aliasing " CACHE STRING "Set CXX flags" FORCE) set(CMAKE_CXX_FLAGS "${LYX_CXX_FLAGS} -fno-strict-aliasing " CACHE STRING "Set CXX flags" FORCE)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -D_DEBUG" CACHE STRING "Set debug flags" FORCE) set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g3 -D_DEBUG" CACHE STRING "Set debug flags" FORCE)
if(MINGW) if(MINGW)
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG" CACHE STRING "Set release flags for Mingw" FORCE) set(CMAKE_CXX_FLAGS_RELEASE "-O2 -march=native -pipe -DNDEBUG" CACHE STRING "Set release flags for Mingw" FORCE)
else() else()
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Set release flags" FORCE) set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -pipe -DNDEBUG" CACHE STRING "Set release flags" FORCE)
endif() endif()
endif() endif()