From ec1d553bbfb9879a5cedfbe030bb01f1c4d97dca Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 9 Nov 2020 12:35:20 +0100 Subject: [PATCH] CMake: Avoid usage of FEATURE_debug_and_release in QtSetup.cmake If the user turns on debug_and_release with the configure script, FEATURE_debug_and_release will not be set, and the debug postfix won't be set correctly. Directly use FEATURE_debug_and_release's condition instead. Change-Id: Ica4af3caa25f2e6712eca4659818aac2c8b95256 Reviewed-by: Alexandru Croitor --- cmake/QtSetup.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 5337856a332..025c0ab425f 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -37,7 +37,7 @@ if(WIN32) if(MINGW) # On MinGW we don't have "d" suffix for debug libraries like on Linux, # unless we're building debug and release libraries in one go. - if(FEATURE_debug_and_release) + if(QT_GENERATOR_IS_MULTI_CONFIG) set(CMAKE_DEBUG_POSTFIX "d") endif() else()