Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3404

qmake: When using an env var inside OBJECTS_DIR it will not be correctly placed in the Makefile if the env var is not set

    XMLWordPrintable

Details

    Description

      qmake: When using an env var inside OBJECTS_DIR it will not be correctly placed in the Makefile if the env var is not set at qmake time

      Using OBJECTS_DIR = .obj$(DEBUGSUF) in .pro file
      and calling
      make DEBUGSUF=_debug

      produces

      .cpp.o:
      $(CXX) -c -include .obj/pchtest$(DEBUGSUF) $(CXXFLAGS) $(INCPATH) -o "$@" "$<"

      instead of
      .cpp.o:
      $(CXX) -c -include .obj$(DEBUGSUF)/pchtest$(DEBUGSUF) $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
      in the Makefile.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stormols Marius Storm-Olsen
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes