Added USE_STATIC_MSVC_RUNTIME cmake option
Some checks are pending
Build / build (macos-13, Debug) (push) Waiting to run
Build / build (macos-13, Release) (push) Waiting to run
Build / build (macos-14, Debug) (push) Waiting to run
Build / build (macos-14, Release) (push) Waiting to run
Build / build (ubuntu-20.04, Debug) (push) Waiting to run
Build / build (ubuntu-20.04, Release) (push) Waiting to run
Build / build (windows-2019, Debug) (push) Waiting to run
Build / build (windows-2019, Release) (push) Waiting to run
Build / build-android (arm64-v8a, Debug) (push) Waiting to run
Build / build-android (arm64-v8a, Release) (push) Waiting to run
Build / build-android (armeabi-v7a, Debug) (push) Waiting to run
Build / build-android (armeabi-v7a, Release) (push) Waiting to run
Build / build-android (x86_64, Debug) (push) Waiting to run
Build / build-android (x86_64, Release) (push) Waiting to run
Build / check_format (push) Waiting to run

This commit is contained in:
OpenSauce04 2024-11-19 16:41:20 +00:00 committed by Paul Adenot
parent 0426c8532a
commit d504c22284

View file

@ -13,8 +13,10 @@ option(BUILD_TOOLS "Build tools" ON)
option(BUNDLE_SPEEX "Bundle the speex library" OFF)
option(LAZY_LOAD_LIBS "Lazily load shared libraries" ON)
option(USE_SANITIZERS "Use sanitizers" ON)
# Set debugging for runtime libraries if requested.
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
option(USE_STATIC_MSVC_RUNTIME "Use /MT instead of /MD in MSVC" OFF)
if(USE_STATIC_MSVC_RUNTIME)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING