summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-08-28 15:59:11 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-08-28 14:10:10 +0000
commit3b04d2224113e9da3ec1f6a48038615dd1f45c68 (patch)
treefbbe10dde0756941682ea49604f564b7fe906acf /cmake
parentdb617705668841f1db21330c14f829c42e640f30 (diff)
Fix "mkspec selection" when building with Emscripten
Change-Id: Id9d466221294651c2f8dfde149d82f45b4081238 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtBuild.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index cc5fe5e07d..2a24176245 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -94,6 +94,8 @@ elseif(ANDROID)
endif()
elseif(APPLE)
set(QT_QMAKE_TARGET_MKSPEC macx-clang)
+elseif(EMSCRIPTEN)
+ set(QT_QMAKE_TARGET_MKSPEC wasm-emscripten)
endif()
# TODO: Fixme to be correct.