Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.6.2
-
None
-
WindowsXP, NokiaQtSDK, Maemo target (using MADDE cross compilation environment)
Description
Create the following two files:
Source.c:
#if !defined(AAA)
#include "Include.h"
#else
// Code here
#endif
Include.h:
#define AAA
#include "Source.c"
#undef AAA
Now, include Source.c into the SOURCES line of the QMake project file (.pro) and run QMake. The resulting Makefile will not contain any mention of Source.c and no error messages will be printed when generating it. A close analysis of the above example shows that these two files DO NOT constitute a circular dependency, but QMake apparently sill thinks that they are.
Attachments
Issue Links
- is replaced by
-
QTBUG-11923 qmake ignores preprocessor conditional inclusion
-
- Open
-