Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Krist Pregracke committed Nov 16, 2024
1 parent 911d6e0 commit b28f9a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/BuildConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -874,13 +874,13 @@ BuildConfig::configureBuild() {
sourceFilePath.string()
);
} else if (sourceFilePath != libSource && isLibSource(sourceFilePath)) {
logger::warn(fmt::format(
logger::warn(
"source file `{}` is named `lib` but is not located directly in the "
"`src/` directory. "
"This file will not be treated as a library. "
"Move it directly to 'src/' if intended as such.",
sourceFilePath.string()
));
);
}

srcs += ' ' + sourceFilePath.string();
Expand Down
15 changes: 5 additions & 10 deletions src/Cmd/Build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,8 @@ buildImpl(std::string& outDir, const bool isDebug) {
if (exitCode != EXIT_SUCCESS) {
// If packageName binary is not up-to-date, compile it.
logger::info(
"Compiling",

"{} v{} ({})", packageName, getPackageVersion().toString(),
getProjectBasePath().string()

"Compiling", "{} v{} ({})", packageName,
getPackageVersion().toString(), getProjectBasePath().string()
);
exitCode = execCmd(makeCmd);
}
Expand All @@ -74,11 +71,9 @@ buildImpl(std::string& outDir, const bool isDebug) {
if (exitCode != EXIT_SUCCESS) {
// If packageName binary is not up-to-date, compile it.
logger::info(
"Compiling",
fmt::format(
"{} v{} ({})", libName, getPackageVersion().toString(),
getProjectBasePath().string()
)
"Compiling", "{} v{} ({})", libName, getPackageVersion().toString(),
getProjectBasePath().string()

);
exitCode = execCmd(makeCmd);
}
Expand Down

0 comments on commit b28f9a9

Please sign in to comment.