summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-20 20:17:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-20 20:17:38 +0100
commitd6f88a728bf1e5a2d8a35bfb3f67a35691358983 (patch)
tree4e85cccc18f3329afd62a1b9fec9e45d4b77fb81
parent6cae7618972a7e7f553693875c7b78e023ad7182 (diff)
cmake: update msvc toolchain file
-rw-r--r--cmake/msvc.cmake43
1 files changed, 26 insertions, 17 deletions
diff --git a/cmake/msvc.cmake b/cmake/msvc.cmake
index 12470eef..e7e3c329 100644
--- a/cmake/msvc.cmake
+++ b/cmake/msvc.cmake
@@ -111,24 +111,33 @@ 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
- onnxruntime_USE_AVX ON
- onnxruntime_USE_AVX2 OFF
- onnxruntime_USE_AVX512 OFF
- ONNX_USE_MSVC_STATIC_RUNTIME ON
- protobuf_MSVC_STATIC_RUNTIME ON
- onnxruntime_BUILD_BENCHMARKS OFF
- onnxruntime_BUILD_FOR_NATIVE_MACHINE OFF
- onnxruntime_BUILD_SHARED_LIB ON
- onnxruntime_BUILD_UNIT_TESTS OFF
- protobuf_BUILD_EXAMPLES OFF
- protobuf_BUILD_SHARED_LIBS OFF
- ONNX_BUILD_BENCHMARKS OFF
- ONNX_BUILD_TESTS OFF
- ONNX_DISABLE_EXCEPTIONS OFF # important!
- ONNX_GEN_PB_TYPE_STUBS OFF
- onnxruntime_DISABLE_CONTRIB_OPS ON
- BUILD_TESTING OFF
+ onnxruntime_USE_AVX ON
+ onnxruntime_USE_AVX2 OFF
+ onnxruntime_USE_AVX512 OFF
+ onnxruntime_BUILD_BENCHMARKS OFF
+ onnxruntime_BUILD_FOR_NATIVE_MACHINE OFF
+ onnxruntime_BUILD_SHARED_LIB ON
+ onnxruntime_BUILD_UNIT_TESTS OFF
+ protobuf_BUILD_EXAMPLES OFF
+ protobuf_BUILD_SHARED_LIBS OFF
+ ONNX_BUILD_BENCHMARKS OFF
+ ONNX_BUILD_TESTS OFF
+ ONNX_DISABLE_EXCEPTIONS OFF # important!
+ ONNX_GEN_PB_TYPE_STUBS OFF
+ onnxruntime_DISABLE_CONTRIB_OPS ON
+ BUILD_TESTING OFF
)
elseif(opentrack-64bit)
set(opentrack-simd "AVX")