You could try setting the QMAKE_CC and QMAKE_CXX variables inside the subdirectory's .pro file.
Cheers,
_
You could try setting the QMAKE_CC and QMAKE_CXX variables inside the subdirectory's .pro file.
Cheers,
_
Thank you for the answer. Sorry for late response, didn't had time to test it.
Seems to work for the compiler. Can I also change the mkspec? It is set with -spec option for the whole projoct but if an other compiler is used another spec should be selected. Or do I have to overwrite all Options manually?
Hmm, good question.
You could try including the other mkspec, i.e. using the include() function.
Alternatively you could try removing the subdir from SUBDIRS and instead have a custom command that runs a different qmake on the subdir, or with different arguments.
Cheers,
_
Bookmarks