<div dir="ltr"><div><div>Gotcha, my project builds atm and it's fairly large, didn't know that it broke anything else.<br><br></div>Please let me know when someone fixes it :)<br><br></div>VT<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 30, 2019 at 6:31 AM Sebastian Holtermann <<a href="mailto:seblist@xwmw.org">seblist@xwmw.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Venedict,<br>
<br>
I took a look at this again, thanks for the additional information.<br>
In fact this isn't VS specific. I was able to reproduce the issue using<br>
Linux/Makefiles.<br>
<br>
> Got the fix, hopefully it can be merged in :)<br>
> <a href="https://github.com/Personwithhat/custom_cmake/commit/d7930c36c6aa7956a806a28" rel="noreferrer" target="_blank">https://github.com/Personwithhat/custom_cmake/commit/d7930c36c6aa7956a806a28</a><br>
> 4aa7e1e430ef6c174<br>
<br>
This change is too intrusive and breaks a lot of other things.<br>
<br>
> >>> set (MOC_COMPILATION<br>
> >>> "${CMAKE_CURRENT_BINARY_DIR}/${TargetProject}_autogen/mocs_compilation.c<br>
> >>> pp") # stdafx.h needs to be included to ensure platform definitions are<br>
> >>> visible<br>
> >>> set_property(SOURCE "${MOC_COMPILATION}" APPEND_STRING PROPERTY<br>
> >>> COMPILE_FLAGS " /FI\"${PrecompiledHeader}\"")<br>
<br>
Setting compiler flags on the mocs_compilation.cpp file is the root cause.<br>
I'll investigate this deeper.<br>
<br>
-Sebastian<br>
<br>
<br>
<br>
</blockquote></div>