Hi,

I'm trying to build a widget library. If I type:

Qt Code:
  1. >> qmake -project "TEMPLATE = lib" MyProject.pro .
To copy to clipboard, switch view to plain text mode 

The result is:

Qt Code:
  1. TEMPLATE = lib
  2. TEMPLATE = app
  3. TARGET =
  4. DEPENDPATH += .
  5. INCLUDEPATH += .
  6.  
  7. # Input
  8. HEADERS += MyProjectImpl.h
  9. FORMS += MyProject.ui
  10. SOURCES += MyProjectImpl.cpp
To copy to clipboard, switch view to plain text mode 

As you can see there are two 'TEMPLATE' entries when there should only be one and this breaks my build. The 'TEMPLATE = app' line should be absent.

Is this a bug or am I using the command line incorrectly?

[Windows XP SP2, Qt4.4]