diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b240f8a4b..3579afcb1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,8 @@ if( MSVC ) if(CMAKE_SIZEOF_VOID_P MATCHES 4) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE") endif() + # Multithreaded compiling on VS + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") endif() #