Unsolved Disable assert
-
Hello!
I use Qt-5.12.2, I can use qmake parametersrelease
/debug
for disable/enable debug build. Now I should disableassert
, for this I should defineNDEBUG
.
I grep sources of Qt, but I don't found what qmake parametrrelease
addNDEBUG
macros, so my question - I should manually addNDEBUG
or qmake make this at release build?
Thank you. -
@debian In pro file add
DEFINES += NDEBUG
-
Hello, @jsulm , so qmake doesn't make this?
Ok, thank you. -
This post is deleted! -
QMAKE_CXXFLAGS_RELEASE += -DNDEBUG
will apply the NDEBUG define to release builds only.