Re: [CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects?

2018-02-05 Thread Niels Dekker
Update: I just submitted the issue to https://gitlab.kitware.com/cmake/cmake/issues/17720 Kind regards, Niels Previous Message Subject: Re: [CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects? Date: Fri, 26 Jan 2018

Re: [CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects?

2018-01-26 Thread Niels Dekker
Thank you for your encouraging replies, Johannes and Cristian. In the meantime I created "default" Visual C++ projects on Visual Studio 2008, Visual Studio 2010, Visual Studio 2013, Visual Studio 2015 and Visual Studio 2017 (from within the IDE, without using CMake). It appears that each of

Re: [CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects?

2018-01-25 Thread Mueller-Roemer, Johannes Sebastian
This would be a great feature! Currently I override my release flags by setting CMAKE__FLAGS_RELEASE_INIT and CMAKE__LINKER_FLAGS_RELEASE_INIT in a CMAKE_USER_MAKE_RULES_OVERRIDE script. Direct support for /GL and /LTCG in CMake would be great. Fewer target specifics to worry about…

Re: [CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects?

2018-01-24 Thread Cristian Adam
Hi, I had a quick check to see if CMake 3.10 for which compilers it has support for Interprocedural Optimization (IPO, or LTCG as known on Visual C++). Modules/Compiler had only

[CMake] Link Time Code Generation (LTGC) by default, for Release configurations of Visual Studio projects?

2018-01-24 Thread Niels Dekker
When a Visual C++ project is created within Visual Studio (by File menu, New, Project...), it has Link Time Code Generation (LTGC) by default, for its Release configurations: Compiler option /GL and linker option /LTCG. However, when the Visual C++ project is generated by CMake, it does not