[cmake-developers] Specifying sources without file extensions

Ben Boeckel ben.boeckel at kitware.com
Thu Dec 8 08:15:58 EST 2016


On Thu, Dec 08, 2016 at 08:01:03 -0500, Brad King wrote:
> On 12/08/2016 01:41 AM, Craig Scott wrote:
> > file names without extensions is a feature which is simply missing
> > documentation or is it an undocumented feature that projects are not
> > supposed to use? Since there are error messages like the above, it
> > would seem that the latter would be a harder position to justify.
> 
> It is an ancient legacy behavior from CMake's earliest days when it
> was only used for C++ projects with lists of "classes" where each
> was expected to have a source and header file.  The behavior should
> be removed with a new policy, but no one has actually done that yet.

See https://gitlab.kitware.com/cmake/cmake/issues/15208 for the actual
issue for adding the policy.

--Ben


More information about the cmake-developers mailing list