From romain at r-enthusiasts.com  Mon Feb  3 11:07:40 2014
From: romain at r-enthusiasts.com (Romain Francois)
Date: Mon, 3 Feb 2014 11:07:40 +0100
Subject: [Rd] LinkingTo self
Message-ID: <C9D6ABA9-72D2-499E-A467-D0B8D309C094@r-enthusiasts.com>

Hello, 

Shipping header files for a package in inst/include and let other packages use it with LinkingTo is popular. 

Unfortunately for the package itself, we still need to use something like :

PKG_CPPFLAGS+=-I../inst/include/

in the Makevars and Makevars.win files. 

Could this become automatic ? 

So if a package has src/ and inst/include/ can we have it so that a -I flag is set accordingly. 

Would anyone be interested in reviewing a patch against R-devel for such feature ?

Romain



[Rd] LinkingTo self
Romain Francois