From plummerm at iarc.fr  Fri Mar  2 10:42:27 2018
From: plummerm at iarc.fr (Martyn Plummer)
Date: Fri, 2 Mar 2018 09:42:27 +0000
Subject: [Rd] 
 Makevars CXX_STD variable ignored when no *.cpp files in src/
In-Reply-To: <CAB6MLKNjRFNF6rh1NNF-m_pDqsYSBh8rKF-bpKjFJq-gy0FiuA@mail.gmail.com>
References: <CAB6MLKNjRFNF6rh1NNF-m_pDqsYSBh8rKF-bpKjFJq-gy0FiuA@mail.gmail.com>
Message-ID: <1519983746.4751.73.camel@iarc.fr>

You are not the first person to report this, but last time when I tried
it myself I could not reproduce the bug. Let me try it again.

Martyn

On Fri, 2018-03-02 at 09:26 +0100, Rados?aw Piliszek wrote:
> Hello!
> 
> I might have found a bug in the way that R handles Makevars file when
> building a package.
> 
> Value of variable CXX_STD is ignored - i.e. R does not use the
> correct
> compiler/flags - if there are no *.cpp files directly in the src/
> directory (e.g. all *.cpp are in subdirectories, and OBJECTS variable
> is set accordingly). Adding a bogus *.cpp file fixes this issue.
> However, this is not very obvious (I would dare saying it is not
> obvious at all) and I spent quite a time checking what went wrong
> after I organized my src files better. :-)
> 
> Kind regards,
> Rados?aw Piliszek
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Makevars CXX_STD variable ignored when no *.cpp files in src/
Martyn Plummer