diff --git a/CMakeLists.txt b/CMakeLists.txt index f7979ff..a5b9b2d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,10 @@ else () add_compile_options(-Wall -Wextra -pedantic -Werror) endif () +if (CMAKE_BUILD_TYPE STREQUAL "Release") + add_compile_options(-O3 -march=native) +endif() + add_library(cplchess_lib OBJECT Square.cpp Move.cpp