diff options
author | Martin Storsjö <martin@martin.st> | 2020-11-03 13:21:05 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2020-11-03 21:36:35 +0200 |
commit | 46dd4df4b907a8cae1b6ef1fd5ba5a68e628d6fc (patch) | |
tree | c98a5a0d61e8b586c24a6d57c89fd402290a55af /cmake | |
parent | d3ed7dac8aa2f4ede0c409254b9dd44842086be0 (diff) |
cmake: Set a warning flag based on the target arch, not build host
Change-Id: I0b524d52286210b7782dd710467fbc3a742d0c08
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index cdaa91ffcb..a04e216943 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -6,7 +6,7 @@ function(qt_internal_set_warnings_are_errors_flags target) if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "3.0.0") list(APPEND flags -Werror -Wno-error=\#warnings -Wno-error=deprecated-declarations) endif() - if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") + if(CMAKE_SYSTEM_NAME STREQUAL "Windows") # Clang will otherwise show error about inline method conflicting with dllimport class attribute in tools # (this was tested with Clang 10) # error: 'QString::operator[]' redeclared inline; 'dllimport' attribute ignored [-Werror,-Wignored-attributes] |