Merge pull request #11223 from ElderOrb/bigobj

fix for 'C1128: number of sections exceeded object file format limit'
This commit is contained in:
Anthony Thibault 2017-08-22 16:36:49 -07:00 committed by GitHub
commit bb49bcdcfd

View file

@ -18,6 +18,7 @@ find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5LinguistToolsMacros)
if (WIN32)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -bigobj")
add_definitions(-D_USE_MATH_DEFINES) # apparently needed to get M_PI and other defines from cmath/math.h
add_definitions(-DWINDOWS_LEAN_AND_MEAN) # needed to make sure windows doesn't go to crazy with its defines
endif()