Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qmake CONFIG+=Debug didn't wokr for some sub directions
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 133 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • LengJianHanShuangL Offline
    LengJianHanShuangL Offline
    LengJianHanShuang
    wrote on last edited by
    #1

    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

    Follow your dreams

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved