Skip to content

Commit 5b2ce23

Browse files
committed
[Windows] Visual Studio 17.10以降、 一部環境にてアプリがクラッシュする問題を修正
1 parent 0806e24 commit 5b2ce23

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

windows/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ cmake_policy(SET CMP0063 NEW)
77

88
set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
99

10+
# Avoiding crashes caused by msvcp140!mtx_do_lock
11+
# reference: https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710
12+
add_compile_definitions(_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
13+
1014
# Configure build options.
1115
get_property(IS_MULTICONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
1216
if(IS_MULTICONFIG)

0 commit comments

Comments
 (0)