forked from qt-creator/qt-creator
CMakeBuild: fix unittest msvc compile
by adding /bigobj cxx flag for msvc builds Change-Id: I73e6afc820556454c2886fd2a55b296229c50649 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -8,6 +8,10 @@ if (NOT Googletest_FOUND)
|
||||
return()
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
|
||||
endif()
|
||||
|
||||
add_qtc_test(unittest GTEST
|
||||
INCLUDES
|
||||
BEFORE "../mockup"
|
||||
|
||||
Reference in New Issue
Block a user