Skip to content

Commit

Permalink
CMake: Avoid usage of FEATURE_debug_and_release in QtSetup.cmake
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jobor committed Nov 9, 2020
1 parent 41d948c commit ec1d553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/QtSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ec1d553

Please sign in to comment.