Skip to content

Commit e5afb2f

Browse files
committed
CMake fixes for Windows
1 parent 75a86ad commit e5afb2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ include(PocoMacros)
5656
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
5757

5858
if(MSVC)
59-
option(POCO_MT "Set to OFF|ON (default is OFF) to control build of POCO as /MT instead of /MD" ON)
60-
59+
option(POCO_MT "Set to OFF|ON (default is OFF) to control build of POCO as /MT instead of /MD" OFF)
6160
option(ENABLE_MSVC_MP "Set to OFF|ON (default is OFF) to control parallel build of POCO with MSVC" ON)
61+
62+
if(BUILD_SHARED_LIBS AND POCO_MT)
63+
message(FATAL_ERROR "Cannot have both BUILD_SHARED_LIBS and POCO_MT")
64+
endif()
6265

6366
# allow disabling of internally built OpenSSL# (see below for details)
6467
# if POCO pre-built OpenSSL directory is found, and POCO_DISABLE_INTERNAL_OPENSSL=OFF,

0 commit comments

Comments
 (0)