~riderius/cpp-code

bd2183eb20641ef09ca1cf18164ea8b73c44afa9 — RIDERIUS 4 months ago 30266c4
Added O2 optimization in compile flags

Signed-off-by: RIDERIUS <riderius.help@gmail.com>
1 files changed, 1 insertions(+), 1 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +1 -1
@@ 2,7 2,7 @@ cmake_minimum_required(VERSION 3.5)
project(cpp_code)

set(CMAKE_CXX_STANDARD 17)
SET(MYCOMPILE_FLAGS "-pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused")
SET(MYCOMPILE_FLAGS "-pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused -O2")
message(INFO " COMPILE_FLAGS: " ${MYCOMPILE_FLAGS})
add_definitions(${MYCOMPILE_FLAGS})