[CMake] 'Parallel' CMakeLists.txt?

Nicolas Desprès nicolas.despres at gmail.com
Tue Jan 31 10:55:49 EST 2012


On Tue, Jan 31, 2012 at 2:23 PM, Brad King <brad.king at kitware.com> wrote:
> On 1/28/2012 11:36 AM, g4 at novadsp.com wrote:
>>
>> Is it possible to get CMake to process/search for an alternative
>
>> default filename to CMakeLists.txt?
>
> Not currently.  We're not fundamentally opposed to the idea, but it may
> be tricky to get the interface right.  Should the alternate name be used
> in *all* directories?  Should it be configurable on a per-subdirectory
> basis?  What if you have some third-party subdirectories that you're
> not touching?  Should it be an ordered list of names to check?  Does the
> rule apply to try_compile projects?  Do we keep the information in the
> CMakeCache.txt?  Once it is switched for the top-most directory should
> that one need to tell add_subdirectory what name to use for a subdir?
>

Brad,

All these considerations are important but maybe we could just do
first the easy path which is: add a -f option which change the default
name every where, for all sub-directories, try_compile, etc...

[...]

-Nico


More information about the CMake mailing list