diff --git a/IDE/src/BuildContext.bf b/IDE/src/BuildContext.bf index da9911fd..ac45ae33 100644 --- a/IDE/src/BuildContext.bf +++ b/IDE/src/BuildContext.bf @@ -180,7 +180,6 @@ namespace IDE #endif //String error = scope String(); - bool isTest = options.mBuildOptions.mBuildKind == .Test; bool isExe = ((project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) && (project.mGeneralOptions.mTargetType != Project.TargetType.BeefTest)) || (isTest); if (!isExe) @@ -299,6 +298,9 @@ namespace IDE bool isExe = ((project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) && (project.mGeneralOptions.mTargetType != Project.TargetType.BeefTest)) || (isTest); bool isDynLib = project.mGeneralOptions.mTargetType == Project.TargetType.BeefDynLib; + if (options.mBuildOptions.mBuildKind == .StaticLib) + isExe = false; + if (isExe || isDynLib) { CopyLibFiles(targetPath, workspaceOptions, options); @@ -795,6 +797,9 @@ namespace IDE bool isTest = options.mBuildOptions.mBuildKind == .Test; bool isExe = ((project.mGeneralOptions.mTargetType != Project.TargetType.BeefLib) && (project.mGeneralOptions.mTargetType != Project.TargetType.BeefTest)) || (isTest); + if (options.mBuildOptions.mBuildKind == .StaticLib) + isExe = false; + if (isExe) { String linkLine = scope String();