mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-01 09:24:55 +02:00
add option ENABLE_MSVC_MP for parallel MSVC builds
This commit is contained in:
parent
86301edc09
commit
2efe9b05cb
@ -92,6 +92,9 @@ option(POCO_UNBUNDLED
|
|||||||
if(MSVC)
|
if(MSVC)
|
||||||
option(POCO_MT
|
option(POCO_MT
|
||||||
"Set to OFF|ON (default is OFF) to control build of POCO as /MT instead of /MD" OFF)
|
"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()
|
endif()
|
||||||
|
|
||||||
# Uncomment from next two lines to force static or dynamic library, default is autodetection
|
# Uncomment from next two lines to force static or dynamic library, default is autodetection
|
||||||
|
@ -40,6 +40,11 @@ if(MSVC)
|
|||||||
else(POCO_MT)
|
else(POCO_MT)
|
||||||
set(STATIC_POSTFIX "md" CACHE STRING "Set static library postfix" FORCE)
|
set(STATIC_POSTFIX "md" CACHE STRING "Set static library postfix" FORCE)
|
||||||
endif(POCO_MT)
|
endif(POCO_MT)
|
||||||
|
|
||||||
|
if (ENABLE_MSVC_MP)
|
||||||
|
add_definitions(/MP)
|
||||||
|
endif()
|
||||||
|
|
||||||
else(MSVC)
|
else(MSVC)
|
||||||
# Other compilers then MSVC don't have a static STATIC_POSTFIX at the moment
|
# Other compilers then MSVC don't have a static STATIC_POSTFIX at the moment
|
||||||
set(STATIC_POSTFIX "" CACHE STRING "Set static library postfix" FORCE)
|
set(STATIC_POSTFIX "" CACHE STRING "Set static library postfix" FORCE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user