avoid code duplication with local cmake modules; fixes #32

the directory for downloaded modules is renamed from modules/ to downloaded/
This commit is contained in:
Radovan Bast
2015-07-17 10:37:01 +02:00
parent 6e97708f50
commit bafae8ab61
5 changed files with 44 additions and 39 deletions

View File

@ -3,15 +3,16 @@
Customizing CMake modules
=========================
The ``update.py`` script assembles modules listed in ``autocmake.cfg`` and
places them inside ``modules/``. You have at least four options to customize
CMake modules:
The ``update.py`` script assembles modules listed in ``autocmake.cfg`` into
``CMakeLists.txt``. Those that are fetched from the web are placed inside
``downloaded/``. You have at least four options to customize downloaded CMake
modules:
Directly inside the generated modules directory
-----------------------------------------------
Directly inside the generated directory
---------------------------------------
The CMake modules can be customized directly inside ``modules/`` but this is
The CMake modules can be customized directly inside ``downloaded/`` but this is
the least elegant solution since the customizations may be overwritten by the
``update.py`` script (use version control).

View File

@ -37,8 +37,8 @@ creates ``CMakeLists.txt`` and ``setup.py`` in the build path::
python update.py ..
The script also copies or downloads CMake modules specified in ``autocmake.cfg`` to a directory
called ``modules/``::
The script also downloads remote CMake modules specified in ``autocmake.cfg`` to a directory
called ``downloaded/``::
cmake/
update.py
@ -46,7 +46,7 @@ called ``modules/``::
lib/
config.py
docopt.py
modules/ # CMakeLists.txt includes CMake modules from this directory
downloaded/ # contains CMake modules fetched from the web
Building the project

View File

@ -3,7 +3,7 @@
Updating CMake modules
======================
To update CMake modules you need to run the ``update.py`` script::
To update CMake modules fetched from the web you need to run the ``update.py`` script::
cd cmake
python update.py ..