You need LinkingTo: Rcpp

And the information goes into the CLINK_CPPFLAGS variable if you really need to 
make a custom rule for .cpp files

Romain

> Le 29 juil. 2015 à 17:19, "jsmith5...@yahoo.com" <jsmith5...@yahoo.com> a 
> écrit :
> 
> Hi,
> 
> Is there a way to automatically specify the location of the Rcpp include
> directory (for Rcpp.h) in Makevars?
> 
> In my Makevars, I use the following compile command:
> 
> %.o: %.cpp $(cpp_sources)
>    $(CXX) $(PKG_CXXFLAGS) $<
> 
> 
> I also specified "Imports: Rcpp" in DESCRIPTION, but it does not appear
> to automatically add the right flags to the compile command.
> 
> I am looking for something that could work similarly to Rscript -e
> "Rcpp:::LdFlags()", which used to export the Rcpp library flags.
> 
> Any ideas are greatly appreciated!
> 
> Thanks!
> Lutz
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel@lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to