diff --git a/pymsbuild/_types.py b/pymsbuild/_types.py index ea9d7d5..8a8ab4c 100644 --- a/pymsbuild/_types.py +++ b/pymsbuild/_types.py @@ -250,6 +250,7 @@ class CProject(_Project): """ options = { "ConfigurationType": "DynamicLibrary", + "DynamicLibcppLinkage": "false", } def __init__(self, name, *members, **options): diff --git a/pymsbuild/targets/pyd.props b/pymsbuild/targets/pyd.props index b77ed41..dafe604 100644 --- a/pymsbuild/targets/pyd.props +++ b/pymsbuild/targets/pyd.props @@ -8,12 +8,16 @@ $(SourceRootDir.TrimEnd($(_Sep)));$(PythonIncludes);%(AdditionalIncludeDirectories) Full Disabled + MultiThreadedDLL + MultiThreaded $(PythonLibs);%(AdditionalLibraryDirectories) True $(TargetPath) $([System.IO.Path]::ChangeExtension('$(TargetPath)', '.pdb')) + ucrt.lib;vcruntime.lib;%(AdditionalDependencies) + libucrt.lib;libvcruntime.lib;%(IgnoreSpecificDefaultLibraries) $(TargetPath)