浏览代码

Under MSVC, build project-sources in parallel.

ulatekh 3 年之前
父节点
当前提交
3ea82eaaff
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      CMakeLists.txt

+ 5 - 0
CMakeLists.txt

@@ -23,6 +23,11 @@ if(WINDOWS_STORE)
   target_compile_options(sdl-build-options INTERFACE "-ZW")
 endif()
 
+# Build in parallel under Visual Studio. Not enabled by default.
+if(MSVC)
+  target_compile_options(sdl-build-options INTERFACE "/MP")
+endif(MSVC)
+
 
 # !!! FIXME: this should probably do "MACOSX_RPATH ON" as a target property
 # !!! FIXME:  for the SDL2 shared library (so you get an