build_environment: fix build-flags on windows.
authorRay Molenkamp <github@lazydodo.com>
Sun, 26 Aug 2018 01:40:07 +0000 (19:40 -0600)
committerRay Molenkamp <github@lazydodo.com>
Sun, 26 Aug 2018 01:40:07 +0000 (19:40 -0600)
build all object files with /bigobj since multiple of the dependencies go over the limit on x86

build_files/build_environment/cmake/options.cmake

index b8efb1bda95c4d2c5dc5148548bdc35cf5fb8b5e..504757fb6ad20e81ed573905b483a511857841dd 100644 (file)
@@ -59,7 +59,7 @@ if(WIN32)
        if(MSVC_VERSION GREATER 1909)
                set(COMMON_MSVC_FLAGS "/Wv:18") #some deps with warnings as error aren't quite ready for dealing with the new 2017 warnings.
        endif()
-
+       set(COMMON_MSVC_FLAGS "${COMMON_MSVC_FLAGS} /bigobj") 
        if(WITH_OPTIMIZED_DEBUG)
                set(BLENDER_CMAKE_C_FLAGS_DEBUG "/MTd ${COMMON_MSVC_FLAGS} /O2 /Ob2 /DNDEBUG /DPSAPI_VERSION=1 /DOIIO_STATIC_BUILD /DTINYFORMAT_ALLOW_WCHAR_STRINGS")
        else()