From 87603d5d5089c4df2992ff3e08cdd961eb6080af Mon Sep 17 00:00:00 2001 From: zhupengfei Date: Sat, 16 May 2020 20:54:38 +0800 Subject: [PATCH] LTO isn't working for windows --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3445130..49363f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,10 +128,6 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$") set(PLATFORM_LIBRARIES rt) endif() -if (NOT MSVC) - add_compile_options("-flto") -endif() - # Include source code # =================== add_subdirectory(externals)