diff --git a/moonlight-common-c/moonlight-common-c.pro b/moonlight-common-c/moonlight-common-c.pro index 7f73d074..f62b30bc 100644 --- a/moonlight-common-c/moonlight-common-c.pro +++ b/moonlight-common-c/moonlight-common-c.pro @@ -67,7 +67,7 @@ INCLUDEPATH += \ CONFIG += warn_off staticlib DEFINES += HAS_SOCKLEN_T -debug { +CONFIG(debug, debug|release) { # Enable asserts on debug builds DEFINES += LC_DEBUG } diff --git a/soundio/soundio.pro b/soundio/soundio.pro index 9c5c0d47..b6c87f17 100644 --- a/soundio/soundio.pro +++ b/soundio/soundio.pro @@ -44,6 +44,11 @@ unix:!macx { } } +CONFIG(release, debug|release) { + # Disable asserts on release builds + DEFINES += NDEBUG +} + DEFINES += \ SOUNDIO_STATIC_LIBRARY \ SOUNDIO_VERSION_MAJOR=1 \