Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qmake CONFIG+=Debug didn't wokr for some sub directions



  • I created template=subdir pro(Main.pro), and in it , there are some other sub pro that I'd like to compile sequencely. Like
    "
    TEMPLATE = subdirs

    SUBDIRS =
    ../Lib1
    ../Lib2
    ../Lib3
    ../APP
    CONFIG +=ordered
    "
    The Lib*.Pro is like following
    "
    QT -= gui

    TEMPLATE = lib
    DEFINES += LIB_LIBRARY debug_and_release

    CONFIG += c++11

    CONFIG(debug, debug|release) {
    DESTDIR = $${PWD}/../build/usr/lib/Debug
    } else {
    DESTDIR = $${PWD}/../build/usr/lib/Release
    "

    when I was using command line to compile the Main.pro,
    1.qmake CONFIG+=Debug
    2.make

    but there is Lib3 that always been compiled to Release, anyone knows why can't all libs compiled to debug?
    thanks


Log in to reply