diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-09 12:35:20 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-11-09 13:56:43 +0100 |
commit | ec1d553bbfb9879a5cedfbe030bb01f1c4d97dca (patch) | |
tree | d704c09432fb6f88f9e12462aff042f427acc577 /cmake/QtSetup.cmake | |
parent | 41d948c50b24e82e1e0065dc344349cb3503895f (diff) |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtSetup.cmake')
-rw-r--r-- | cmake/QtSetup.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index 5337856a33..025c0ab425 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() |