[cmake-developers] User vs CMake include mismatch handling

Brad King brad.king at kitware.com
Tue Oct 5 15:44:08 EDT 2010


On 09/30/2010 04:25 PM, Alexander Neundorf wrote:
> New behaviour: the file from shared/cmake/Modules/ is loaded, i.e. the file 
> with which file A was developed and tested, and not a different file provided 
> by a user project. This would fix the problem currently in KDE.

Dave Cole and I just talked about this.  We think this will be a subtle
behavioral distinction that could lead to surprising behaviors.  It may
also be tricky to implement because there are several ways that modules
can be included (enable_language, find_package, include, etc.).

Since this approach only affects CMake files that are distributed with
CMake we can simply edit them.  I think your AddCMAKE_CURRENT_LIST_DIR
topic looks good.

-Brad



More information about the cmake-developers mailing list