s/master/stable-0.x/

This commit is contained in:
Radovan Bast 2016-05-20 11:17:59 +02:00
parent b7c2e4947f
commit d26389b0a1
16 changed files with 58 additions and 58 deletions

View File

@ -1,12 +1,12 @@
[![Build Status](https://travis-ci.org/coderefinery/autocmake.svg?branch=master)](https://travis-ci.org/coderefinery/autocmake/builds) [![Build Status](https://travis-ci.org/coderefinery/autocmake.svg?branch=stable-0.x)](https://travis-ci.org/coderefinery/autocmake/builds)
[![Documentation Status](https://readthedocs.org/projects/autocmake/badge/?version=latest)](http://autocmake.readthedocs.org) [![Documentation Status](https://readthedocs.org/projects/autocmake/badge/?version=latest)](http://autocmake.readthedocs.org)
[![License](https://img.shields.io/badge/license-%20BSD--3-blue.svg)](../master/LICENSE) [![License](https://img.shields.io/badge/license-%20BSD--3-blue.svg)](../stable-0.x/LICENSE)
# Autocmake # Autocmake
A CMake plugin composer. A CMake plugin composer.
Licensed under [BSD-3](../master/LICENSE). Licensed under [BSD-3](../stable-0.x/LICENSE).
See http://autocmake.org. See http://autocmake.org.

View File

@ -10,11 +10,11 @@ This documentation is refreshed upon each push to the central repository.
The module reference documentation is generated from the module sources using The module reference documentation is generated from the module sources using
``#.rst:`` tags (compare for instance ``#.rst:`` tags (compare for instance
http://autocmake.readthedocs.org/en/latest/module-reference.html#cc-cmake with http://autocmake.readthedocs.org/en/latest/module-reference.html#cc-cmake with
https://github.com/coderefinery/autocmake/blob/master/modules/cc.cmake). https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/cc.cmake).
Please note that the lines following ``# autocmake.cfg configuration::`` are Please note that the lines following ``# autocmake.cfg configuration::`` are
understood by the ``update.py`` script to infer autocmake.cfg code from the understood by the ``update.py`` script to infer autocmake.cfg code from the
documentation. As an example consider documentation. As an example consider
https://github.com/coderefinery/autocmake/blob/master/modules/cc.cmake#L20-L25. https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/cc.cmake#L20-L25.
Here, ``update.py`` will infer the configurations for ``docopt``, ``export``, Here, ``update.py`` will infer the configurations for ``docopt``, ``export``,
and ``define``. and ``define``.

View File

@ -5,7 +5,7 @@ Testing Autocmake
You will need to install `pytest <http://pytest.org/>`__. You will need to install `pytest <http://pytest.org/>`__.
Check also the `Travis <https://github.com/coderefinery/autocmake/blob/master/.travis.yml>`__ Check also the `Travis <https://github.com/coderefinery/autocmake/blob/stable-0.x/.travis.yml>`__
build and test recipe for other requirements. build and test recipe for other requirements.
Your contributions and changes should preserve the test set. You can run locally all tests with:: Your contributions and changes should preserve the test set. You can run locally all tests with::

View File

@ -12,12 +12,12 @@ infrastructure files which will be needed to build the project::
$ mkdir cmake # does not have to be called "cmake" - take the name you prefer $ mkdir cmake # does not have to be called "cmake" - take the name you prefer
$ cd cmake $ cd cmake
$ wget https://github.com/coderefinery/autocmake/raw/master/update.py $ wget https://github.com/coderefinery/autocmake/raw/stable-0.x/update.py
$ python update.py --self $ python update.py --self
On the MS Windows system, you can use the PowerShell wget-replacement:: On the MS Windows system, you can use the PowerShell wget-replacement::
$ Invoke-WebRequest https://github.com/coderefinery/autocmake/raw/master/update.py -OutFile update.py $ Invoke-WebRequest https://github.com/coderefinery/autocmake/raw/stable-0.x/update.py -OutFile update.py
This creates (or updates) the following files (an existing ``autocmake.cfg`` is This creates (or updates) the following files (an existing ``autocmake.cfg`` is
not overwritten by the script):: not overwritten by the script)::

View File

@ -13,38 +13,38 @@ below::
min_cmake_version: 2.8 min_cmake_version: 2.8
[fc] [fc]
source: https://github.com/coderefinery/autocmake/raw/master/modules/fc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/fc.cmake
[cc] [cc]
source: https://github.com/coderefinery/autocmake/raw/master/modules/cc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/cc.cmake
[cxx] [cxx]
source: https://github.com/coderefinery/autocmake/raw/master/modules/cxx.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/cxx.cmake
[flags] [flags]
source: https://github.com/coderefinery/autocmake/raw/master/compilers/GNU.CXX.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/compilers/GNU.CXX.cmake
https://github.com/coderefinery/autocmake/raw/master/compilers/Intel.CXX.cmake https://github.com/coderefinery/autocmake/raw/stable-0.x/compilers/Intel.CXX.cmake
[rpath] [rpath]
source: custom/rpath.cmake source: custom/rpath.cmake
[definitions] [definitions]
source: https://github.com/coderefinery/autocmake/raw/master/modules/definitions.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/definitions.cmake
[coverage] [coverage]
source: https://github.com/coderefinery/autocmake/raw/master/modules/code_coverage.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/code_coverage.cmake
[safeguards] [safeguards]
source: https://github.com/coderefinery/autocmake/raw/master/modules/safeguards.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/safeguards.cmake
[default_build_paths] [default_build_paths]
source: https://github.com/coderefinery/autocmake/raw/master/modules/default_build_paths.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/default_build_paths.cmake
[src] [src]
source: https://github.com/coderefinery/autocmake/raw/master/modules/src.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/src.cmake
[googletest] [googletest]
source: https://github.com/coderefinery/autocmake/raw/master/modules/googletest.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/googletest.cmake
[custom] [custom]
source: custom/api.cmake source: custom/api.cmake
@ -71,13 +71,13 @@ The names of the other sections do not matter to Autocmake. You could name them
min_cmake_version: 2.8 min_cmake_version: 2.8
[one] [one]
source: https://github.com/coderefinery/autocmake/raw/master/modules/fc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/fc.cmake
[two] [two]
source: https://github.com/coderefinery/autocmake/raw/master/modules/cc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/cc.cmake
[whatever] [whatever]
source: https://github.com/coderefinery/autocmake/raw/master/modules/cxx.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/cxx.cmake
But it would not make much sense. It is better to choose names that are But it would not make much sense. It is better to choose names that are
meaningful to you. meaningful to you.
@ -163,7 +163,7 @@ The preferred way to extend ``CMakeLists.txt`` is by editing ``autocmake.cfg``
and using the ``source`` option:: and using the ``source`` option::
[fc] [fc]
source: https://github.com/coderefinery/autocmake/raw/master/modules/fc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/fc.cmake
This will download ``fc.cmake`` and include it in ``CMakeLists.txt``. This will download ``fc.cmake`` and include it in ``CMakeLists.txt``.
@ -175,8 +175,8 @@ You can also include local CMake modules, e.g.::
It is also OK to include several modules at once:: It is also OK to include several modules at once::
[flags] [flags]
source: https://github.com/coderefinery/autocmake/raw/master/compilers/GNU.CXX.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/compilers/GNU.CXX.cmake
https://github.com/coderefinery/autocmake/raw/master/compilers/Intel.CXX.cmake https://github.com/coderefinery/autocmake/raw/stable-0.x/compilers/Intel.CXX.cmake
The modules will be included in the same order as they appear in ``autocmake.cfg``. The modules will be included in the same order as they appear in ``autocmake.cfg``.
@ -187,7 +187,7 @@ Fetching files without including them in CMakeLists.txt
Sometimes you want to fetch a file without including it in ``CMakeLists.txt``. Sometimes you want to fetch a file without including it in ``CMakeLists.txt``.
This can be done with the ``fetch`` option. This is for instance done by the This can be done with the ``fetch`` option. This is for instance done by the
``git_info.cmake`` module (see ``git_info.cmake`` module (see
https://github.com/coderefinery/autocmake/blob/master/modules/git_info/git_info.cmake#L10-L11). https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/git_info/git_info.cmake#L10-L11).
If ``fetch`` is invoked in ``autocmake.cfg``, then the fetched file is placed If ``fetch`` is invoked in ``autocmake.cfg``, then the fetched file is placed
under ``downloaded/``. If ``fetch`` is invoked from within a CMake module under ``downloaded/``. If ``fetch`` is invoked from within a CMake module
@ -241,7 +241,7 @@ for many core modules which come with own options once you have sourced them.
The lines following ``# autocmake.cfg configuration::`` are The lines following ``# autocmake.cfg configuration::`` are
understood by the ``update.py`` script to infer ``autocmake.cfg`` code from the understood by the ``update.py`` script to infer ``autocmake.cfg`` code from the
documentation. As an example consider documentation. As an example consider
https://github.com/coderefinery/autocmake/blob/master/modules/cc.cmake#L20-L25. https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/cc.cmake#L20-L25.
Here, ``update.py`` will infer the configurations for ``docopt``, ``export``, Here, ``update.py`` will infer the configurations for ``docopt``, ``export``,
and ``define``. and ``define``.
@ -251,6 +251,6 @@ Overriding documented configurations
Configurable documented defaults can be achieved using interpolations. See for Configurable documented defaults can be achieved using interpolations. See for
instance instance
https://github.com/coderefinery/autocmake/blob/master/modules/boost/boost.cmake#L33-L36. https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/boost/boost.cmake#L33-L36.
These can be modified within ``autocmake.cfg`` with a dictionary, e.g.: These can be modified within ``autocmake.cfg`` with a dictionary, e.g.:
https://github.com/coderefinery/autocmake/blob/master/test/boost_libs/cmake/autocmake.cfg#L9 https://github.com/coderefinery/autocmake/blob/stable-0.x/test/boost_libs/cmake/autocmake.cfg#L9

View File

@ -38,9 +38,9 @@ Overriding defaults
------------------- -------------------
Some modules use interpolations to set defaults, see for instance Some modules use interpolations to set defaults, see for instance
https://github.com/coderefinery/autocmake/blob/master/modules/boost/boost.cmake#L33-L36. https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/boost/boost.cmake#L33-L36.
These can be modified within ``autocmake.cfg``, e.g.: These can be modified within ``autocmake.cfg``, e.g.:
https://github.com/coderefinery/autocmake/blob/master/test/boost_libs/cmake/autocmake.cfg#L9 https://github.com/coderefinery/autocmake/blob/stable-0.x/test/boost_libs/cmake/autocmake.cfg#L9
Create own CMake modules Create own CMake modules

View File

@ -25,7 +25,7 @@ Now we create ``cmake/`` and fetch ``update.py``::
$ mkdir cmake $ mkdir cmake
$ cd cmake/ $ cd cmake/
$ wget https://raw.githubusercontent.com/coderefinery/autocmake/master/update.py $ wget https://raw.githubusercontent.com/coderefinery/autocmake/stable-0.x/update.py
$ python update.py --self $ python update.py --self
Now from top-level our file tree looks like this:: Now from top-level our file tree looks like this::
@ -50,13 +50,13 @@ Now we edit ``cmake/autocmake.cfg`` to look like this::
min_cmake_version: 2.8 min_cmake_version: 2.8
[fc] [fc]
source: https://github.com/coderefinery/autocmake/raw/master/modules/fc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/fc.cmake
[cc] [cc]
source: https://github.com/coderefinery/autocmake/raw/master/modules/cc.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/cc.cmake
[src] [src]
source: https://github.com/coderefinery/autocmake/raw/master/modules/src.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/src.cmake
What we have specified here is the project name and that we wish Fortran and C What we have specified here is the project name and that we wish Fortran and C
support. The ``src.cmake`` module tells CMake to include a ``src/CMakeLists.txt``. support. The ``src.cmake`` module tells CMake to include a ``src/CMakeLists.txt``.

View File

@ -107,7 +107,7 @@ overwritten at some point. A good standard is to organize your sources under
can include the latter in ``autocmake.cfg`` using:: can include the latter in ``autocmake.cfg`` using::
[src] [src]
source: https://github.com/coderefinery/autocmake/raw/master/modules/src.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/src.cmake
If you really don't like to do it this way, you can describe your sources and If you really don't like to do it this way, you can describe your sources and
targets in a custom module in a local file and include it like this:: targets in a custom module in a local file and include it like this::

View File

@ -21,7 +21,7 @@ rather fetch an older version, for example with the hash ``abcd123``. To
achieve this, instead of:: achieve this, instead of::
[foo] [foo]
source: https://github.com/coderefinery/autocmake/raw/master/modules/foo.cmake source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/foo.cmake
pin the version to ``abcd123`` (you do not need to specify the full Git hash, a unique pin the version to ``abcd123`` (you do not need to specify the full Git hash, a unique
beginning will do):: beginning will do)::

View File

@ -73,7 +73,7 @@ def main():
if s_out != '': if s_out != '':
output.append('\n\n%s' % file_name) output.append('\n\n%s' % file_name)
output.append('-'*len(file_name)) output.append('-'*len(file_name))
output.append('`[Source code] <https://github.com/coderefinery/autocmake/blob/master/modules/%s>`__' % full_file_name) output.append('`[Source code] <https://github.com/coderefinery/autocmake/blob/stable-0.x/modules/%s>`__' % full_file_name)
output.append(s_out) output.append(s_out)
with open(os.path.join(THIS_DIR, 'module-reference.rst'), 'w') as f: with open(os.path.join(THIS_DIR, 'module-reference.rst'), 'w') as f:

View File

@ -9,7 +9,7 @@
# #
# [boost] # [boost]
# override: {'major': 1, 'minor': 59, 'patch': 0, 'components': 'chrono;timer;system'} # override: {'major': 1, 'minor': 59, 'patch': 0, 'components': 'chrono;timer;system'}
# source: https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost.cmake # source: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost.cmake
# #
# Cross-dependencies between required components are not checked for. # Cross-dependencies between required components are not checked for.
# For example, Boost.Timer depends on Boost.Chrono and Boost.System thus you # For example, Boost.Timer depends on Boost.Chrono and Boost.System thus you
@ -49,13 +49,13 @@
# minor=48 # minor=48
# patch=0 # patch=0
# components='' # components=''
# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_unpack.cmake # fetch: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_unpack.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_userconfig.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_userconfig.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_configure.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_configure.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_build.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_build.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_install.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_install.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_headers.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_headers.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/boost/boost_cleanup.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/boost/boost_cleanup.cmake
# http://sourceforge.net/projects/boost/files/boost/%(major)s.%(minor)s.%(patch)s/boost_%(major)s_%(minor)s_%(patch)s.zip # http://sourceforge.net/projects/boost/files/boost/%(major)s.%(minor)s.%(patch)s/boost_%(major)s_%(minor)s_%(patch)s.zip
# docopt: --boost-headers=<BOOST_INCLUDEDIR> Include directories for Boost [default: '']. # docopt: --boost-headers=<BOOST_INCLUDEDIR> Include directories for Boost [default: ''].
# --boost-libraries=<BOOST_LIBRARYDIR> Library directories for Boost [default: '']. # --boost-libraries=<BOOST_LIBRARYDIR> Library directories for Boost [default: ''].

View File

@ -7,8 +7,8 @@
# #
# autocmake.cfg configuration:: # autocmake.cfg configuration::
# #
# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/git_info/git_info_sub.cmake # fetch: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/git_info/git_info_sub.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/git_info/git_info.h.in # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/git_info/git_info.h.in
# CMAKE_CURRENT_LIST_DIR is undefined in CMake 2.8.2 # CMAKE_CURRENT_LIST_DIR is undefined in CMake 2.8.2
# see https://public.kitware.com/Bug/print_bug_page.php?bug_id=11675 # see https://public.kitware.com/Bug/print_bug_page.php?bug_id=11675

View File

@ -12,8 +12,8 @@
# #
# docopt: --accelerate Find and link to ACCELERATE [default: False]. # docopt: --accelerate Find and link to ACCELERATE [default: False].
# define: '-DENABLE_ACCELERATE=%s' % arguments['--accelerate'] # define: '-DENABLE_ACCELERATE=%s' % arguments['--accelerate']
# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # fetch: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_libraries.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_include_files.cmake
option(ENABLE_ACCELERATE "Find and link to ACCELERATE" OFF) option(ENABLE_ACCELERATE "Find and link to ACCELERATE" OFF)

View File

@ -12,8 +12,8 @@
# #
# docopt: --cblas Find and link to CBLAS [default: False]. # docopt: --cblas Find and link to CBLAS [default: False].
# define: '-DENABLE_CBLAS=%s' % arguments['--cblas'] # define: '-DENABLE_CBLAS=%s' % arguments['--cblas']
# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # fetch: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_libraries.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_include_files.cmake
option(ENABLE_CBLAS "Find and link to CBLAS" OFF) option(ENABLE_CBLAS "Find and link to CBLAS" OFF)

View File

@ -12,8 +12,8 @@
# #
# docopt: --lapacke Find and link to LAPACKE [default: False]. # docopt: --lapacke Find and link to LAPACKE [default: False].
# define: '-DENABLE_LAPACKE=%s' % arguments['--lapacke'] # define: '-DENABLE_LAPACKE=%s' % arguments['--lapacke']
# fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # fetch: https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_libraries.cmake
# https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake # https://github.com/coderefinery/autocmake/raw/stable-0.x/modules/find/find_include_files.cmake
option(ENABLE_LAPACKE "Find and link to LAPACKE" OFF) option(ENABLE_LAPACKE "Find and link to LAPACKE" OFF)

View File

@ -375,7 +375,7 @@ def main(argv):
if not os.path.isfile('autocmake.cfg'): if not os.path.isfile('autocmake.cfg'):
print('- fetching example autocmake.cfg') print('- fetching example autocmake.cfg')
fetch_url( fetch_url(
src='{0}/raw/master/example/autocmake.cfg'.format(AUTOCMAKE_GITHUB_URL), src='{0}/raw/stable-0.x/example/autocmake.cfg'.format(AUTOCMAKE_GITHUB_URL),
dst='autocmake.cfg' dst='autocmake.cfg'
) )
if not os.path.isfile('.gitignore'): if not os.path.isfile('.gitignore'):
@ -384,17 +384,17 @@ def main(argv):
f.write('*.pyc\n') f.write('*.pyc\n')
print('- fetching lib/config.py') print('- fetching lib/config.py')
fetch_url( fetch_url(
src='{0}/raw/master/lib/config.py'.format(AUTOCMAKE_GITHUB_URL), src='{0}/raw/stable-0.x/lib/config.py'.format(AUTOCMAKE_GITHUB_URL),
dst='lib/config.py' dst='lib/config.py'
) )
print('- fetching lib/docopt/docopt.py') print('- fetching lib/docopt/docopt.py')
fetch_url( fetch_url(
src='{0}/raw/master/lib/docopt/docopt.py'.format(AUTOCMAKE_GITHUB_URL), src='{0}/raw/stable-0.x/lib/docopt/docopt.py'.format(AUTOCMAKE_GITHUB_URL),
dst='lib/docopt/docopt.py' dst='lib/docopt/docopt.py'
) )
print('- fetching update.py') print('- fetching update.py')
fetch_url( fetch_url(
src='{0}/raw/master/update.py'.format(AUTOCMAKE_GITHUB_URL), src='{0}/raw/stable-0.x/update.py'.format(AUTOCMAKE_GITHUB_URL),
dst='update.py' dst='update.py'
) )
sys.exit(0) sys.exit(0)