Skip to content

Commit

Permalink
add option ENABLE_MSVC_MP for parallel MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
pwm1234-sri committed Jun 2, 2015
1 parent 86301ed commit 2efe9b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -92,6 +92,9 @@ option(POCO_UNBUNDLED
if(MSVC)
option(POCO_MT
"Set to OFF|ON (default is OFF) to control build of POCO as /MT instead of /MD" OFF)

option(ENABLE_MSVC_MP
"Set to OFF|ON (default is OFF) to control parallel build of POCO with MSVC" OFF)
endif()

# Uncomment from next two lines to force static or dynamic library, default is autodetection
Expand Down
5 changes: 5 additions & 0 deletions cmake/DefinePlatformSpecifc.cmake
Expand Up @@ -40,6 +40,11 @@ if(MSVC)
else(POCO_MT)
set(STATIC_POSTFIX "md" CACHE STRING "Set static library postfix" FORCE)
endif(POCO_MT)

if (ENABLE_MSVC_MP)
add_definitions(/MP)
endif()

else(MSVC)
# Other compilers then MSVC don't have a static STATIC_POSTFIX at the moment
set(STATIC_POSTFIX "" CACHE STRING "Set static library postfix" FORCE)
Expand Down

0 comments on commit 2efe9b0

Please sign in to comment.