This library contains CMake code (files with .cmake extentions),
Python scripts and it is intended for simplification different actions
on the organization of the build environment.
Revision | 0992a09c5666c4e191bb0400ad20006cad84e11b (tree) |
---|---|
Time | 2017-03-18 05:52:28 |
Author | s.gusarov |
Commiter | s.gusarov |
Use all CPU cores to compile MS Visual Studio project
@@ -248,8 +248,6 @@ | ||
248 | 248 | else: |
249 | 249 | subprocess.check_call(['make', '-j' + str(cpu.makeCpuCount())]) |
250 | 250 | |
251 | - # TODO: Add multithreaded MSVC build | |
252 | - | |
253 | 251 | endTime = time.time() |
254 | 252 | elapsedTime = endTime - startTime |
255 | 253 | print('Finished at: ' + str(datetime.datetime.now())) |
@@ -8,6 +8,8 @@ | ||
8 | 8 | # It's better to use _set_se_translator() for SEH but for function /EHa option is required(according to msdn) |
9 | 9 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} /EHa") |
10 | 10 | |
11 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} /MP") | |
12 | + | |
11 | 13 | # Shut up microsoft's selfish warnings |
12 | 14 | set(CMT_COMPILER_DEFINITIONS "${CMT_COMPILER_DEFINITIONS} -D_CRT_SECURE_NO_WARNINGS") |
13 | 15 | set(CMT_COMPILER_DEFINITIONS "${CMT_COMPILER_DEFINITIONS} -D_CRT_SECURE_NO_DEPRECATE") |
@@ -8,6 +8,8 @@ | ||
8 | 8 | # It's better to use _set_se_translator() for SEH but for function /EHa option is required(according to msdn) |
9 | 9 | set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} /EHa") |
10 | 10 | |
11 | +set(CMT_COMPILER_OPTIONS "${CMT_COMPILER_OPTIONS} /MP") | |
12 | + | |
11 | 13 | if (MSVC_VERSION VERSION_LESS 1700 OR MSVC_VERSION VERSION_EQUAL 1700) |
12 | 14 | # Fix google test build errors |
13 | 15 | # See http://stackoverflow.com/questions/8274588/c2977-stdtuple-too-many-template-arguments-msvc11 |