Skip to content

Commit

Permalink
Always compile in /MT
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Oct 5, 2023
1 parent c32cb4e commit 432a695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ if ("${CMAKE_BUILD_TYPE}" MATCHES "Release")
string(REGEX REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
string(REGEX REPLACE "/MD" "/MT" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")

set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
message(NOTICE "Building in Release mode")
endif()

set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

include(FetchContent)

message(STATUS "Fetching bddisasm (v1.34.10)...")
Expand Down
3 changes: 2 additions & 1 deletion cmake.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ if ("${CMAKE_BUILD_TYPE}" MATCHES "Release")
string(REGEX REPLACE "/MD" "/MT" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
string(REGEX REPLACE "/MD" "/MT" CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}")
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
message(NOTICE "Building in Release mode")
endif()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
"""

[target.spdlog]
Expand Down

0 comments on commit 432a695

Please sign in to comment.