summaryrefslogtreecommitdiffstats
path: root/configure.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'configure.cmake')
-rw-r--r--configure.cmake7
1 files changed, 2 insertions, 5 deletions
diff --git a/configure.cmake b/configure.cmake
index c217175b0..83cc0e4c9 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -574,19 +574,16 @@ ${xcbErrorMessage}"
)
add_check_for_support(
MODULES QtWebEngine QtPdf
- CONDITION
+ CONDITION MSVC OR
(LINUX AND CMAKE_CXX_COMPILER_ID STREQUAL GNU) OR
(LINUX AND CMAKE_CXX_COMPILER_ID STREQUAL Clang) OR
- (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL MSVC) OR
- (WIN32 AND CMAKE_CXX_COMPILER_ID STREQUAL Clang AND
- CMAKE_CXX_SIMULATE_ID STREQUAL MSVC) OR
(MACOS AND CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) OR
(APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL AppleClang) OR
(ANDROID AND CMAKE_CXX_COMPILER_ID STREQUAL Clang)
MESSAGE "${CMAKE_CXX_COMPILER_ID} compiler is not supported."
)
if(WIN32)
- if(CMAKE_CXX_COMPILER_ID STREQUAL MSVC)
+ if(MSVC)
add_check_for_support(
MODULES QtWebEngine QtPdf
CONDITION NOT MSVC_VERSION LESS 1929