cmake-basis / legacy

Legacy CMake BASIS project for versions 3.2 and older. For newer versions, go to
https://github.com/cmake-basis/BASIS
Other
13 stars 11 forks source link

Add PROJECT_MODULES_DIRS #543

Closed schuhschuh closed 8 years ago

schuhschuh commented 8 years ago

Instead of just a single PROJECT_MODULES_DIR, it would be nice to be able to provide more than one directory which should be searched for a number of modules. Currently, when different groups of modules are located in different subdirectories, the developer can only specify one of these directories with MODULES_DIR option of basis_project and has to specify each module in another subdirectory tree using MODULE_DIRS explicitly.

ahundt commented 8 years ago

Perhaps an enumeration of the location of the actual modules rather than directories to search would be better?

schuhschuh commented 8 years ago

Well that is already possible using MODULE_DIRS. But then you have to edit the BasisProject.CMake file everything you add another module. Also, maybe it is not fixed which modules to expect, e.g., because of optional additional download of subdirectories.

schuhschuh commented 8 years ago

Maybe I misunderstood what you mean by "actual modules". A module is defined by its root directory and the BasisProject.cmake therein. The name of the directory generally relates to the module name.

ahundt commented 8 years ago

oh yeah silly me :-)