LTO isn't working for windows

This commit is contained in:
zhupengfei
2020-05-16 20:54:38 +08:00
parent 47df56ea36
commit 87603d5d50
-4
View File
@@ -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)