Skip to content

Commit

Permalink
buildscript: Force runtime MSVCRT
Browse files Browse the repository at this point in the history
  • Loading branch information
caseif committed Aug 10, 2024
1 parent f5ed760 commit b068acf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ configure_file(${CMAKE_SOURCE_DIR}/CTestCustom.cmake ${CMAKE_BINARY_DIR})
# Compiler configuration
########################

# force use of runtime CRT so that Rust <-> C++ linking doesn't fail
if(MSVC)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
endif()

include("${ROOT_PROJECT_DIR}/cmake/ConfigureCompileFlags.cmake")

set(CMAKE_C_OUTPUT_EXTENSION_REPLACE 1)
Expand Down

0 comments on commit b068acf

Please sign in to comment.