From aef169afbb156ad88d9914d4927eecad0b422e7f Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Thu, 29 Jan 2026 23:35:17 +0800 Subject: [PATCH] Do not set MT/MD for Windows explicitly. --- CMakeLists.txt | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ca27dc..b2946e2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.24.0") cmake_policy(SET CMP0135 NEW) endif() -set(KALDI_DECODER_VERSION "0.2.10") +set(KALDI_DECODER_VERSION "0.2.11") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") @@ -52,18 +52,6 @@ if(BUILD_SHARED_LIBS) set(CMAKE_POSITION_INDEPENDENT_CODE ON) endif() -if(NOT BUILD_SHARED_LIBS AND MSVC) - # see https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html - # https://stackoverflow.com/questions/14172856/compile-with-mt-instead-of-md-using-cmake - if(MSVC) - add_compile_options( - $<$:/MT> #---------| - $<$:/MTd> #---|-- Statically link the runtime libraries - $<$:/MT> #--| - ) - endif() -endif() - if(KALDI_DECODER_BUILD_PYTHON) include(pybind11) endif()