Enable /MP4 (parallel build across 4 cores for MSVC) for SPIRV-Tools/source[/opt] (#1930)

This commit is contained in:
Jeff Bolz 2018-10-01 09:47:39 -05:00 committed by Steven Perron
parent ddc705933d
commit fe90a1d2dc
2 changed files with 9 additions and 0 deletions

View File

@ -371,3 +371,8 @@ if(ENABLE_SPIRV_TOOLS_INSTALL)
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif(ENABLE_SPIRV_TOOLS_INSTALL)
if(MSVC)
# Enable parallel builds across four cores for this lib
add_definitions(/MP4)
endif()

View File

@ -205,3 +205,7 @@ if(ENABLE_SPIRV_TOOLS_INSTALL)
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif(ENABLE_SPIRV_TOOLS_INSTALL)
if(MSVC)
# Enable parallel builds across four cores for this lib
add_definitions(/MP4)
endif()