Amend 635a7d77: define /Zc flag also with QT6

This commit is contained in:
Eugene Chornyi 2021-05-24 20:32:26 +02:00
parent 7b4df8fbd0
commit 0cbc55805b

View File

@ -1109,7 +1109,7 @@ if(MSVC)
endif()
if (NOT Qt5Core_FOUND)
if (NOT (Qt5Core_FOUND OR Qt6Core_FOUND))
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Zc:wchar_t-")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zc:wchar_t-")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /Zc:wchar_t-")