Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
2.4.3
-
Visual Studio 2019, Win 10
Description
If i set, for example, MocDirectory(in Qt Project Settings Dialog) to $(IntDir)\GeneratedFiles - I've got this command in my vcxproj file:
<Command Condition="'$(Configuration)|$(Platform)'=='debug|Win32'">"$(QTDIR)\bin\moc.exe" "%(FullPath)" -o "$(IntDir)\GeneratedFiles\moc_%(Filename).cpp" -DUNICODE -DWIN32 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_DLL -DQT_NETWORK_LIB -D_CRT_SECURE_NO_WARNINGS -DQT_WIDGETS_LIB -DQT_SQL_LIB -D%(PreprocessorDefinitions) "-I$(QTDIR)\include" "-I$(QTDIR)\include\qtmain" "-I$(QTDIR)\include\QtCore" "-I$(QTDIR)\include\QtGui" "-I$(QTDIR)\include\QtXml" "-I$(QTDIR)\include\QtNetwork" "-I$(QTDIR)\include\QtWidgets" "-I$(IntDir)\GeneratedFiles" "-I.\..\..\include" "-I.\..\..\res" "-I.\..\..\..\common" "-I.\..\..\..\common\include" "-I.\..\..\..\..\..\3dparty" "-I$(QTDIR)\include\QtSql" "-fph.h" "-f../../../../src/platform/config_db/include/%(Filename)%(Extension)"</Command>
"f" option(marked red) - generated erroneous
my $(IntDir) variable is .\..\..\..\..\..\bin\platform\$(PlatformTarget)\windows_temp\$(Configuration)\$(ProjectName)
so "f" option must be
"-f../../../../../../../src/platform/config_db/include/%(Filename)%(Extension)"
As result i've got compile errors cos compiler can't find my header!
The same thing with RccDirectory and UicDirectory..