[cmake-developers] [CMake 0013190]: Add CMake Policy to drop automatic source extension search

Mantis Bug Tracker mantis at public.kitware.com
Fri May 4 11:21:06 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13190 
====================================================================== 
Reported By:                Brad King
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13190
Category:                   CMake
Reproducibility:            N/A
Severity:                   feature
Priority:                   low
Status:                     new
====================================================================== 
Date Submitted:             2012-05-04 11:21 EDT
Last Modified:              2012-05-04 11:21 EDT
====================================================================== 
Summary:                    Add CMake Policy to drop automatic source extension
search
Description: 
CMake code like

  add_library(foo bar)

will search automatically for "bar.c" and other extensions on "bar".  This
historical remnant leads to confusion when the behavior triggers accidentally. 
We should add a policy to disable the behavior completely.


Additional Information: 
Issue http://public.kitware.com/Bug/view.php?id=13186 is an example of confusing
accidental source extension handling.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-05-04 11:21 Brad King      New Issue                                    
======================================================================




More information about the cmake-developers mailing list