From d856eb47201a5ed650c86bf7cb7433da3b9bce8d Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Fri, 14 Oct 2016 06:36:21 +0300 Subject: turn on /MP for multi-core compilation --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 737be2a..a7ac5b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ project(privilege_check CXX) # Not sure if that matters a great deal. if(MSVC) - add_compile_options(/W4) + add_compile_options(/MP /W4) elseif(CMAKE_COMPILER_IS_GNUCXX) add_compile_options(-Wall -Wextra -std=c++14) endif() diff --git a/README.md b/README.md index 4f3156e..b8fefbf 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Another example, using Cygwin + MinGW-w64 + `make` (again, targetting x86-64): /cygdrive/d/workspace/personal/privilege-test ... - > cmake --build . + > cmake --build . -- -j ... License -- cgit v1.2.3