Skip to content

Commit

Permalink
Set MSVC_RUNTIME_LIBRARY for static build.
Browse files Browse the repository at this point in the history
This resolves:
#28 (comment)
  • Loading branch information
ArthurSonzogni committed Apr 30, 2023
1 parent 083d742 commit 668c848
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 1.0.148

- Set MSVC_RUNTIME_LIBRARY to /MT for static builds
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ function(target_set_common target)
target_link_options(${target} PRIVATE "-fwasm-exceptions")
# Nothing
elseif (MSVC)
set_property(TARGET foo PROPERTY
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
target_compile_options(${target} PRIVATE "/wd4244")
target_compile_options(${target} PRIVATE "/wd4267")
target_compile_options(${target} PRIVATE "/wd4996")
Expand Down

0 comments on commit 668c848

Please sign in to comment.