Skip to content

Commit

Permalink
Handle possibility that cmake version isn't determined correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
nealrichardson committed Jan 14, 2024
1 parent 06c1e79 commit d96fca2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion r/tools/nixlibs.R
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,12 @@ find_cmake <- function(paths = c(
} else {
# Keep trying
lg("Not using cmake found at %s", path, .indent = "****")
lg("Version >= %s required; found %s", version_required, found_version,.indent = "*****")
if (found_version > 0) {
lg("Version >= %s required; found %s", version_required, found_version, .indent = "*****")
} else {
# If cmake_version() couldn't determine version, it returns 0
lg("Could not determine version; >= %s required", version_required, .indent = "*****")
}
}
}
}
Expand Down

0 comments on commit d96fca2

Please sign in to comment.