diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 761a41d946..8bb5a96574 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -607,6 +607,58 @@ jobs: cd cmake-build; ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release + windows-2022-msvc-cmake-static-mt: + runs-on: windows-2022 + env: + CPPUNIT_IGNORE: >- + class CppUnit::TestCaller.testFind, + class CppUnit::TestCaller.testSendToReceiveFrom, + class CppUnit::TestCaller.testPing, + class CppUnit::TestCaller.testBigPing, + class CppUnit::TestCaller.testMTU, + class CppUnit::TestCaller.testProxy, + class CppUnit::TestCaller.testProxy, + class CppUnit::TestCaller.testExists, + class CppUnit::TestCaller.testProcessRunner + steps: + - uses: actions/checkout@v4 + - run: cmake -S. -Bcmake-build -DBUILD_SHARED_LIBS=OFF -DPOCO_MT=ON -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON + - run: cmake --build cmake-build --config Release + - uses: ./.github/actions/retry-action + with: + timeout_minutes: 90 + max_attempts: 3 + retry_on: any + command: >- + cd cmake-build; + ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release + + windows-2022-msvc-cmake-static: + runs-on: windows-2022 + env: + CPPUNIT_IGNORE: >- + class CppUnit::TestCaller.testFind, + class CppUnit::TestCaller.testSendToReceiveFrom, + class CppUnit::TestCaller.testPing, + class CppUnit::TestCaller.testBigPing, + class CppUnit::TestCaller.testMTU, + class CppUnit::TestCaller.testProxy, + class CppUnit::TestCaller.testProxy, + class CppUnit::TestCaller.testExists, + class CppUnit::TestCaller.testProcessRunner + steps: + - uses: actions/checkout@v4 + - run: cmake -S. -Bcmake-build -DBUILD_SHARED_LIBS=OFF -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON + - run: cmake --build cmake-build --config Release + - uses: ./.github/actions/retry-action + with: + timeout_minutes: 90 + max_attempts: 3 + retry_on: any + command: >- + cd cmake-build; + ctest --output-on-failure -E "(DataMySQL)|(DataODBC)|(Redis)|(MongoDB)" -C Release + # missing asan dll path # windows-2022-msvc-cmake-asan: # runs-on: windows-2022 diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d120e68fb..303d75fc50 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" ON) set(POCO_SANITIZEFLAGS CACHE STRING "Compiler-dependent sanitizer flags (like -fsanitize=address or /fsanitize=address") if(MSVC) - option(POCO_MT "Set to OFF|ON (default is OFF) to control build of POCO as /MT instead of /MD" OFF) + option(POCO_MT "Set to OFF|ON (default is OFF) to control static build of POCO as /MT instead of /MD" OFF) if(BUILD_SHARED_LIBS AND POCO_MT) message(FATAL_ERROR "Cannot have both BUILD_SHARED_LIBS and POCO_MT")