I have the following code code specify various output dir and the dest dir

Qt Code:
  1. BUILD_ROOT = $${PWD}/build/$$TARGET-$$TEMPLATE
  2. DIST_ROOT = $${PWD}/dist
  3.  
  4. CONFIG(debug, debug|release) {
  5. BUILD_ROOT = $${BUILD_ROOT}/debug
  6. DIST_ROOT = $${DIST_ROOT}/debug
  7. } else {
  8. BUILD_ROOT = $${BUILD_ROOT}/release
  9. DIST_ROOT = $${DIST_ROOT}/release
  10. }
  11.  
  12. DESTDIR = $${DIST_ROOT}
  13. OBJECTS_DIR = $${BUILD_ROOT}/obj
  14. MOC_DIR = $${BUILD_ROOT}/moc
  15. RCC_DIR = $${BUILD_ROOT}/rcc
  16. UI_DIR = $${BUILD_ROOT}/ui
To copy to clipboard, switch view to plain text mode 

However when the PWD is expanded to a path that contains spaces, the final makefile will fail when build.

This is the compile output:
Qt Code:
  1. Running build steps for project logging...
  2. Configuration unchanged, skipping qmake step.
  3. Starting: "C:\QtSDK\mingw\bin\mingw32-make.exe"
  4. c:\qtsdk\desktop\qt\4.7.4\mingw\bin\qmake.exe -spec c:\QtSDK\Desktop\Qt\4.7.4\mingw\mkspecs\win32-g++ CONFIG+=release -o Makefile logging.pro
  5. C:/QtSDK/mingw/bin/mingw32-make -f Makefile.Release
  6. mingw32-make[1]: Entering directory `C:/Documents and Settings/Grayfox/Desktop/root/projects/logging/trunk/src/logging'
  7. g++ -Wl,-s -mthreads -shared -Wl,--out-implib,c:\Documents and Settings\Grayfox\Desktop\root\projects\logging\trunk\dist\release\liblogging.a -o ..\..\dist\release\logging.dll ../../build/logging-lib/release/obj/Logging.o -L"c:\QtSDK\Desktop\Qt\4.7.4\mingw\lib"
  8. mingw32-make[1]: Leaving directory `C:/Documents and Settings/Grayfox/Desktop/root/projects/logging/trunk/src/logging'
  9. g++: and: No such file or directory
  10. g++: Settings\Grayfox\Desktop\root\projects\logging\trunk\dist\release\liblogging.a: No such file or directory
  11. mingw32-make[1]: *** [..\..\dist\release\logging.dll] Error 1
  12. mingw32-make: *** [release] Error 2
  13. The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
  14. Error while building project logging (target: Desktop)
  15. When executing build step 'Make'
To copy to clipboard, switch view to plain text mode 

Notice the line:
g++ -Wl,-s -mthreads -shared -Wl,--out-implib,c:\Documents and Settings\Grayfox\Desktop\root\projects\logging\tru nk\dist\release\liblogging.a -o

The path is not quoted, which cause this error:
g++: Settings\Grayfox\Desktop\root\projects\logging\tru nk\dist\release\liblogging.a: No such file or directory

Normally, if I do not explicitly set a DESTDIR, the path above would have quotes around them.

Is this a known issue?