Skip to content

Commit 99deb15

Browse files
committed
Fix MSVC CRT for Unit tests
1 parent 3819d27 commit 99deb15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/UnitTest/cmake_core.cmake

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ if(${ASTCENC_CLI})
2727
INTERPROCEDURAL_OPTIMIZATION_RELEASE True)
2828
endif()
2929

30+
# Use a static runtime on MSVC builds (ignored on non-MSVC compilers)
31+
set_property(TARGET ${ASTCENC_TEST}
32+
PROPERTY
33+
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
34+
3035
target_sources(${ASTCENC_TEST}
3136
PRIVATE
3237
test_simd.cpp

0 commit comments

Comments
 (0)