summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-06-04 13:46:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-06-04 13:46:56 +0200
commit788d478be6c363d151a9693b3b1d4e4eaa11c021 (patch)
tree583cb55c895491acf5c4055e6cfa283799e1b95c /cmake
parent76c69398f5e8ef8d9d4858383ff2602fe18d7218 (diff)
switch to using -MD with msvc
Diffstat (limited to 'cmake')
-rw-r--r--cmake/msvc.cmake15
1 files 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$<$<CONFIG:Debug>:Debug>DLL")
+add_compile_options(-MD)
add_link_options(-cgthreads:1)