From 0cbc55805b979ae11c4a8d6454599fca8e75420c Mon Sep 17 00:00:00 2001 From: Eugene Chornyi Date: Mon, 24 May 2021 20:32:26 +0200 Subject: [PATCH] Amend 635a7d77: define /Zc flag also with QT6 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3eed1a52d..f36784a858 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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-")