Skip to content

Commit 2c4436e

Browse files
author
Matevz Morato
committed
Try to override the static compilation of CRT for Windows
1 parent 812ead9 commit 2c4436e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

bindings/python/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ if(WIN32)
190190

191191
# Disable "d" postfix, so python can import the library as is
192192
set_target_properties(${TARGET_NAME} PROPERTIES DEBUG_POSTFIX "")
193+
194+
# Statically compile CRT
195+
target_compile_options(${TARGET_NAME} PRIVATE "/MT")
193196
endif()
194197

195198
# Add stubs (pyi) generation step after building bindings

0 commit comments

Comments
 (0)