diff --git a/Source/Tools/Flax.Build/Build/NativeCpp/Builder.NativeCpp.cs b/Source/Tools/Flax.Build/Build/NativeCpp/Builder.NativeCpp.cs index ae6c62c7d..aee48066e 100644 --- a/Source/Tools/Flax.Build/Build/NativeCpp/Builder.NativeCpp.cs +++ b/Source/Tools/Flax.Build/Build/NativeCpp/Builder.NativeCpp.cs @@ -799,7 +799,7 @@ namespace Flax.Build moduleOptions.CompileEnv.PreprocessorDefinitions.Add(dependencyModule.BinaryModuleName.ToUpperInvariant() + "_API=" + toolchain.DllImport); var dependencyModuleBuild = buildData.FinReferenceBuildModule(moduleName); - if (dependencyModuleBuild != null) + if (dependencyModuleBuild != null && !string.IsNullOrEmpty(dependencyModuleBuild.NativePath)) { // Link against the referenced binary module if (toolchain.UseImportLibraryWhenLinking)