add option ENABLE_MSVC_MP for parallel MSVC builds

This commit is contained in:
Philip Miller 2015-06-02 12:04:31 -04:00
parent 86301edc09
commit 2efe9b05cb
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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)