Cool VL Viewer forum
http://sldev.free.fr/forum/

Windows LTO support in build scripts?
http://sldev.free.fr/forum/viewtopic.php?f=9&t=2494
Page 1 of 1

Author:  kathrine [ 2024-05-06 13:18:22 ]
Post subject:  Windows LTO support in build scripts?

Hello Henri,

Maybe LTO could be enabled for Windows too, when using CMAKE 3.13+ ?

The 00-common.cmake script says:

Code:
# LTO is for now not made available for MSVC builds (cmake does not implement
# it, for now).
if (USELTO AND NOT WINDOWS)
   set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
endif (USELTO AND NOT WINDOWS)


According to the CMAKE documentation, the support for Visual Studio was added with CMAKE 3.13, see comment below:
https://cmake.org/cmake/help/latest/mod ... OSupported

Author:  Henri Beauchamp [ 2024-05-06 15:39:16 ]
Post subject:  Re: Windows LTO support in build scripts?

Thanks.

Added a proper test for Windows' cmake v3.13 in next releases.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/