aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 06:36:21 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-10-14 06:36:21 +0300
commitd856eb47201a5ed650c86bf7cb7433da3b9bce8d (patch)
tree328c6928e382e0bf3ea2d6620020669e0add72ea
parentadd README (diff)
downloadprivilege-check-d856eb47201a5ed650c86bf7cb7433da3b9bce8d.tar.gz
privilege-check-d856eb47201a5ed650c86bf7cb7433da3b9bce8d.zip
turn on /MP for multi-core compilation
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt2
-rw-r--r--README.md2
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