From dd7caa6b89ed3e30d792159bbd1c4e75f94e6a7f Mon Sep 17 00:00:00 2001 From: Cairetina Date: Sun, 5 May 2024 16:24:07 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 87a485e5d4..7277953fa4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,8 @@ cmake_policy(SET CMP0069 NEW) # Set the default so subdirectory cmake_minimum_required calls won't unset the policy. cmake_policy(SET CMP0063 NEW) set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=znver2 -Ofast -flto=thin") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=znver2 -Ofast -flto=thin") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")