From 285b292d738eaabd9ff7e3bbec02a26736c7d50b Mon Sep 17 00:00:00 2001 From: Sonatique Date: Wed, 11 Jan 2023 12:50:19 -0500 Subject: msvc: Add configurations with /MT compilation flag Allows statically linking vc++ runtime dependencies inside libusb-1.0 Windows libraries. 'Release' and 'Debug' configurations produce /MD compiled binaries while the new 'Release-MT' and 'Debug-MT" configurations produce /MT compiled binaries. The /MT flag causes the application to include the multithread, static version of the vc++ run-time library, whereas the default flag /MD will cause the vc++ run-time library to be dynamically linked run-time. Using /MT thus builds a standalone libusb DLL that doesn't require a vc++ runtime DLL to be shipped along with it. For the official description of /MT see: https://docs.microsoft.com/en-us/cpp/build/reference/md-mt-ld-use-run-time-library Closes #1188 --- msvc/Base.props | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'msvc/Base.props') diff --git a/msvc/Base.props b/msvc/Base.props index c2cff15..d2ebf8a 100644 --- a/msvc/Base.props +++ b/msvc/Base.props @@ -19,15 +19,15 @@ ProgramDatabase Caret - - + + Disabled - + Default - - + + NDEBUG;%(PreprocessorDefinitions) AnySuitable Speed @@ -41,8 +41,8 @@ true true - - + + UseLinkTimeCodeGeneration true true -- cgit v1.2.1