From 788d478be6c363d151a9693b3b1d4e4eaa11c021 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 4 Jun 2024 13:46:56 +0200 Subject: switch to using -MD with msvc --- cmake/msvc.cmake | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake index b8442f03..311e261c 100644 --- a/cmake/msvc.cmake +++ b/cmake/msvc.cmake @@ -113,19 +113,9 @@ set(opentrack-simd "SSE2") if(CMAKE_PROJECT_NAME STREQUAL "onnxruntime") set(opentrack-simd "AVX") - - if(opentrack-no-static-crt) - sets(BOOL - ONNX_USE_MSVC_STATIC_RUNTIME OFF - protobuf_MSVC_STATIC_RUNTIME OFF - ) - else() - sets(BOOL - ONNX_USE_MSVC_STATIC_RUNTIME ON - protobuf_MSVC_STATIC_RUNTIME ON - ) - endif() sets(BOOL + ONNX_USE_MSVC_STATIC_RUNTIME OFF + protobuf_MSVC_STATIC_RUNTIME OFF onnxruntime_USE_AVX ON onnxruntime_USE_AVX2 OFF onnxruntime_USE_AVX512 OFF @@ -147,6 +137,7 @@ elseif(opentrack-64bit) endif() set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>DLL") +add_compile_options(-MD) add_link_options(-cgthreads:1) -- cgit v1.2.3