From radoslaw.piliszek at gmail.com  Fri Mar  2 09:26:46 2018
From: radoslaw.piliszek at gmail.com (=?UTF-8?Q?Rados=C5=82aw_Piliszek?=)
Date: Fri, 2 Mar 2018 09:26:46 +0100
Subject: [Rd] Makevars CXX_STD variable ignored when no *.cpp files in src/
Message-ID: <CAB6MLKNjRFNF6rh1NNF-m_pDqsYSBh8rKF-bpKjFJq-gy0FiuA@mail.gmail.com>

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



[Rd] Makevars CXX_STD variable ignored when no *.cpp files in src/
=?UTF-8?Q?Rados=C5=82aw_Piliszek?=