Add /Zm flag as a workaround for VS2013 build (#2023)

This commit is contained in:
Jeff Bolz 2018-10-31 06:59:43 -05:00 committed by Lei Zhang
parent 6647884a13
commit fb996dce75

View File

@ -195,8 +195,8 @@ if(MSVC)
else()
set(PCH_NAME "pch.pch")
endif()
set_source_files_properties(${SPIRV_TOOLS_OPT_SOURCES} PROPERTIES COMPILE_FLAGS "/Yupch.h /FIpch.h /Fp${PCH_NAME}" OBJECT_DEPENDS "${PCH_NAME}")
set_source_files_properties(pch.cpp PROPERTIES COMPILE_FLAGS "/Ycpch.h /Fp${PCH_NAME}" OBJECT_OUTPUTS "${PCH_NAME}")
set_source_files_properties(${SPIRV_TOOLS_OPT_SOURCES} PROPERTIES COMPILE_FLAGS "/Yupch.h /FIpch.h /Fp${PCH_NAME} /Zm300" OBJECT_DEPENDS "${PCH_NAME}")
set_source_files_properties(pch.cpp PROPERTIES COMPILE_FLAGS "/Ycpch.h /Fp${PCH_NAME} /Zm300" OBJECT_OUTPUTS "${PCH_NAME}")
list(APPEND SPIRV_TOOLS_OPT_SOURCES "pch.cpp")
endif()