MSVC: Split the warning suppression compile options string
cl: Command line error D8021 : invalid numeric argument '/wd4530 /wd4577' Change-Id: I222e779870ebacfc6f8a71e90dbf47867a84f72f Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Qt CMake Build Bot
This commit is contained in:
parent
abe12f600b
commit
39f720e6dd
@ -1034,7 +1034,7 @@ endfunction()
|
||||
function(qt_internal_set_no_exceptions_flags target)
|
||||
target_compile_definitions("${target}" PRIVATE "QT_NO_EXCEPTIONS")
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
target_compile_options("${target}" PRIVATE "/wd4530 /wd4577")
|
||||
target_compile_options("${target}" PRIVATE "/wd4530" "/wd4577")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
target_compile_options("${target}" PRIVATE "-fno-exceptions")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "AppleClang")
|
||||
|
Loading…
x
Reference in New Issue
Block a user