Skip to content

Commit e56ab46

Browse files
committed
1 parent 7da9889 commit e56ab46

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/buildtools.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ sysdeps_info <- function(pkg){
271271
if(file.exists('/NEED_JAGS')){
272272
sysdeps <- rbind(sysdeps, maketools::package_sysdeps('rjags'))
273273
}
274+
if(any(grepl('protobuf', sysdeps$shlib))){
275+
sysdeps <- rbind(sysdeps, maketools:::paths_to_sysdep(Sys.which("protoc")))
276+
}
274277
df <- sysdeps[!is.na(sysdeps$package), c('shlib', 'package', 'headers', 'source', 'version')]
275278
if(is.data.frame(df) && nrow(df) > 0){
276279
df$name = NA_character_

0 commit comments

Comments
 (0)