CMake Build: Fix for Clang on Windows

lld on Windows has problems with rsp files bigger than 32KiB.

Change-Id: Ia6b6d7461218b783491874a506a4610607a66b0f
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Cristian Adam
2019-10-31 16:10:47 +01:00
parent b2b57a5123
commit 0d9425b51b

View File

@@ -82,7 +82,13 @@ add_subdirectory(ctfvisualizer)
# Level 7:
add_subdirectory(boot2qt)
add_subdirectory(qmldesigner)
unset(qmldesigner_builddir)
if (WIN32 AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Workaround for @CMakeFiles\QmlDesigner.rsp ld.lld.exe: The filename or extension is too long.
# Clang on Windows is having problems with QmlDesigner.rsp which is bigger than 32KiB
set(qmldesigner_builddir ${PROJECT_BINARY_DIR}/qmldsgnr)
endif()
add_subdirectory(qmldesigner ${qmldesigner_builddir})
add_subdirectory(qnx)
add_subdirectory(webassembly)
add_subdirectory(mcusupport)