summaryrefslogtreecommitdiffstats
path: root/src/corelib/Qt5CoreMacros.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-02-01 14:05:35 -0500
committerThiago Macieira <thiago.macieira@intel.com>2017-02-01 23:11:42 +0000
commit1b599660219d8b54df5d075bf7aa69bfd3bf282b (patch)
tree979023028fc41ef8114d5046fd3665c472943a06 /src/corelib/Qt5CoreMacros.cmake
parent5eb2c8c79eb7fe28e99aa0a5065ae65c13b69fed (diff)
Qt5CoreMacros: append the --compiler-flavor=msvc flag
Previously, the flags were replaced rather than appended to, losing -I flags and causing `#include` directives to fail. Change-Id: I74609e891ea327a8136c8075ab13176fc85ab111 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/Qt5CoreMacros.cmake')
-rw-r--r--src/corelib/Qt5CoreMacros.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/Qt5CoreMacros.cmake b/src/corelib/Qt5CoreMacros.cmake
index 23909c9f3f..489bc75511 100644
--- a/src/corelib/Qt5CoreMacros.cmake
+++ b/src/corelib/Qt5CoreMacros.cmake
@@ -91,7 +91,7 @@ macro(QT5_GET_MOC_FLAGS _moc_flags)
set(${_moc_flags} ${${_moc_flags}} -DWIN32)
endif()
if (MSVC)
- set(${_moc_flags} --compiler-flavor=msvc)
+ set(${_moc_flags} ${${_moc_flags}} --compiler-flavor=msvc)
endif()
endmacro()