Skip to content

Commit b3d38c7

Browse files
author
Matevz Morato
committed
Make static runtime library "global"
1 parent 2c4436e commit b3d38c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.16)
1+
cmake_minimum_required(VERSION 3.16)
22
# Early options
33
option(DEPTHAI_ENABLE_LIBUSB "Enable usage of libusb and interaction with USB devices" ON)
44
# Build AprilTag node code (note, that even if set to OFF, an AprilTagNode can be used with setRunOnHost(false))
@@ -14,6 +14,10 @@ set(DEPTHAI_HAS_APRIL_TAG ${DEPTHAI_ENABLE_APRIL_TAG})
1414
if(WIN32)
1515
message(STATUS "AprilTag node is not supported on Windows")
1616
set(DEPTHAI_HAS_APRIL_TAG OFF)
17+
18+
# Statically compile vcruntime library
19+
add_compile_options(/MT)
20+
1721
endif()
1822
if(DEPTHAI_HAS_APRIL_TAG)
1923
list(APPEND VCPKG_MANIFEST_FEATURES "apriltag")

0 commit comments

Comments
 (0)