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>
This commit is contained in:
parent
41d948c50b
commit
ec1d553bbf
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user