diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-14 06:36:21 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-10-14 06:36:21 +0300 |
commit | d856eb47201a5ed650c86bf7cb7433da3b9bce8d (patch) | |
tree | 328c6928e382e0bf3ea2d6620020669e0add72ea | |
parent | add README (diff) | |
download | privilege-check-d856eb47201a5ed650c86bf7cb7433da3b9bce8d.tar.gz privilege-check-d856eb47201a5ed650c86bf7cb7433da3b9bce8d.zip |
turn on /MP for multi-core compilation
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | 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() @@ -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 |