CMake: Enable multi-processor compilation for MSVC

Add option wxBUILD_MSVC_MULTIPROC which defaults to ON
to add /MP the MSVC compiler options.
This commit is contained in:
Tobias Taschner
2018-02-08 21:13:44 +01:00
parent 9a3b145731
commit 623a9123a1
2 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ mark_as_advanced(wxBUILD_CUSTOM_SETUP_HEADER_PATH)
if(MSVC)
wx_option(wxBUILD_USE_STATIC_RUNTIME "Link using the static runtime library" OFF)
wx_option(wxBUILD_MSVC_MULTIPROC "Enable multi-processor compilation for MSVC")
else()
# Other compilers support setting the C++ standard, present it an option to the user
if(DEFINED CMAKE_CXX_STANDARD)