From 88883dbf60b4436a54a4f7e762d09372b9275198 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 28 Aug 2019 16:43:43 +0200 Subject: [PATCH] Fix WASM platform detection At the moment we only support building with Emscripten, so that's the system name to look for. Change-Id: I08782ed0201da1593058bf1fb2ec61d6660802ed Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor --- cmake/QtPlatformSupport.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtPlatformSupport.cmake b/cmake/QtPlatformSupport.cmake index ac9973905af..2c5df77ba4c 100644 --- a/cmake/QtPlatformSupport.cmake +++ b/cmake/QtPlatformSupport.cmake @@ -16,7 +16,7 @@ set01(QNX CMAKE_SYSTEM_NAME STREQUAL "QNX") # FIXME: How to identify this? set01(OPENBSD CMAKE_SYSTEM_NAME STREQUAL "OpenBSD") # FIXME: How to identify this? set01(FREEBSD CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") # FIXME: How to identify this? set01(NETBSD CMAKE_SYSTEM_NAME STREQUAL "NetBSD") # FIXME: How to identify this? -set01(WASM CMAKE_SYSTEM_NAME STREQUAL "Webassembly") # FIXME: How to identify this? +set01(WASM CMAKE_SYSTEM_NAME STREQUAL "Emscripten") set01(BSD APPLE OR OPENBSD OR FREEBSD OR NETBSD)