gpt4 book ai didi

c++ - qmake配置是什么意思

转载 作者:塔克拉玛干 更新时间:2023-11-03 06:43:13 26 4
gpt4 key购买 nike

在我的 .pro 文件中,我找到了这个片段:

 win32 {
CONFIG(debug, debug|release) {

LIBS += $$(QwtDir)/lib/qwtd.lib\
version.lib

} else {

LIBS += $$(QwtDir)/lib/qwt.lib\
version.lib
}

我看了qmake的文档,里面说可以用CONFIG作为条件语句,他们给了一个CONFIG(debug)的例子,意思是如果在 Debug模式下,但是 CONFIG(debug, debug|release) 呢?这是什么意思?

最佳答案

When qmake processes a pro file it could process it up to three times depending on what the configuration is set to. Usually it will do it three times. Once for debug, once for release and one final one for debug_and_release

...this construct CONFIG(debug, debug|release) ... checks for when the debug configuration is being processed comparing where “debug” and “release” are mutually exclusive.

这摘自详细解释here .

关于c++ - qmake配置是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25515358/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com