From 833e87265d811a09503aaeadfc980d5efe03a9ea Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jul 2024 23:24:05 +0800 Subject: update cmakelists --- xmake/plugins/project/cmake/cmakelists.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua index abb931d89..8d78982f5 100644 --- a/xmake/plugins/project/cmake/cmakelists.lua +++ b/xmake/plugins/project/cmake/cmakelists.lua @@ -793,10 +793,10 @@ function _add_target_optimization(cmakelists, target) local flags_msvc = { none = "$<$:-Od>" - , faster = "$<$:-O2>" - , fastest = "$<$:-Ox -fp:fast>" + , faster = "$<$:-Ox>" + , fastest = "$<$:-O2>" , smallest = "$<$:-O1>" - , aggressive = "$<$:-Ox -fp:fast>" + , aggressive = "$<$:-O2>" } local optimization = target:get("optimize") if optimization then -- cgit v1.3.1