Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.1.1, 5.2.0
-
Qt5.2 out-of-the-box, on a Windows (Win7 x64, Visual 2010) platform.
Description
When TARGET contains a space, the build fails when reaching link, because the target is not quoted inside the generated makefile.
Generated Makefile.Debug contains:
$(TARGET): ... some.h ... $(OBJECTS)
@if not exist ..\..\..\OSTC_Planner\ mkdir ..\..\..\OSTC_Planner\ & if not exist ..\..\..\OSTC_Planner\ exit 1
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Should be:
$(TARGET): ... some.h ... $(OBJECTS)
@if not exist $(DESTDIR) mkdir $(DESTDIR) & if not exist $(DESTDIR) exit 1
$(LINK) $(LFLAGS) -o "$(TARGET)" $(OBJECTS) $(OBJCOMP) $(LIBS)
Note:
- that DESTDIR is indeed defined earlier
- that I don't see how the link can depend on .h files
- that "$(DESTDIR)" might be more wise, as on can put space in the path too
Attachments
Issue Links
- relates to
-
QTBUG-3314 file name quoting is FUBAR
- Open