From ff2ff622eba59ddabf1f29bdc49240b6a7fea3ae Mon Sep 17 00:00:00 2001 From: Boris Staletic Date: Wed, 13 Jan 2021 01:38:57 +0100 Subject: [PATCH] Fix builds --- .github/workflows/ci.yml | 2 +- tests/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50690a6435a..b3b9ea3108f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - 3.5 - 3.6 - 3.9 - - 3.10-dev + #- 3.10-dev - pypy2 - pypy3 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 2b45be7e6c8..d03294f9002 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -16,6 +16,9 @@ else() cmake_policy(VERSION 3.18) endif() +if (MSVC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc") +endif() # Only needed for CMake < 3.5 support include(CMakeParseArguments)