-
Yes, it should work. But note that the expansion will happen immediately, i.e. at configure time when the generator expression is defined, not at generate time when it’s epxanded & used. So the variable must be set correctly at the time the
target_compile_options()
call happens. I would double-check that the variable holds what you think it does at that point. -
I can confirm I can’t see the number anywhere in the UI either. However, it’s present in the generated
.vcxproj
in a<ProcessorNumber>
element, so you can check that using a text editor or XML viewer.