From b55e654cceba1f0023543ea075df382c3ac25134 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93lafur=20Waage?= Date: Thu, 2 Sep 2021 10:37:03 +0200 Subject: [PATCH] Adding MTd for statically linking in Windows due to asan dll's not being in path by default. --- cmake/toolchain.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/toolchain.cmake b/cmake/toolchain.cmake index 574b60a..4a72668 100644 --- a/cmake/toolchain.cmake +++ b/cmake/toolchain.cmake @@ -1,6 +1,6 @@ #compile with warnings if(WIN32) - add_compile_options(/W4 /WX) + add_compile_options(/W4 /WX "$<$:/MTd>") else() add_compile_options(-Wall -Wextra -pedantic -Werror) endif()