visual studio WholeProgramOptimization issues
if the compiler option /GL
was added with TARGET_COMPILE_OPTIONS
, it seems that it cannot be removed anymore.
Even if the targets INTERFACE_COMPILE_OPTIONS and COMPILE_OPTIONS are filtered and the options are completely removed, the generated
project file still contains <WholeProgramOptimization>true</WholeProgramOptimization>
in the <ItemDefinitionGroup><ClCompile>
section.
Here is a more detailed description of the problem https://stackoverflow.com/questions/57886312/cmake-remove-previously-added-target-compile-options
may be related to #10263 (closed)
Edited by vladtepesch