Skip to content

Commit 338c9e2

Browse files
committed
quote path as used in CxxFlags
1 parent 4dde500 commit 338c9e2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-11-11 Kevin Ushey <[email protected]>
2+
3+
* R/RcppLdpath.R: CxxFlags() now quotes its include path
4+
15
2021-10-15 Travers Ching <[email protected]>
26

37
* inst/tinytest/testRcppAttributePackage: Tests `signature` attribute

R/RcppLdpath.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ RcppCxxFlags <- function(cxx0x=FALSE) {
5252
if (.Platform$OS.type=="windows") {
5353
path <- asBuildPath(path) # #nocov
5454
}
55-
paste("-I", path, if (cxx0x && canUseCXX0X()) " -std=c++0x" else "", sep="")
55+
paste0('-I"', path, if (cxx0x && canUseCXX0X()) '" -std=c++0x' else '')
5656
}
5757

5858
## Shorter names, and call cat() directly

0 commit comments

Comments
 (0)