diff --git a/doc/extract_rst.py b/doc/extract_rst.py index 0d6dd80..bb91016 100644 --- a/doc/extract_rst.py +++ b/doc/extract_rst.py @@ -60,6 +60,7 @@ def main(): file_name = ntpath.basename(f) output.append('\n\n%s' % file_name) output.append('-'*len(file_name)) + output.append('`[Source code] `_' % file_name) with open(f, 'r') as s: s_out = extract_rst_blobs(s.read()) if s_out == '': diff --git a/modules/fc.cmake b/modules/fc.cmake index 8aa836f..55379a4 100644 --- a/modules/fc.cmake +++ b/modules/fc.cmake @@ -9,14 +9,14 @@ # # CMAKE_Fortran_MODULE_DIRECTORY (${PROJECT_BINARY_DIR}/include/fortran) # -# Example ``autocmake.cfg`` entry:: +# Example autocmake.cfg entry:: # # [fc] # source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake # docopt: --fc= Fortran compiler [default: gfortran]. # --extra-fc-flags= Extra Fortran compiler flags [default: '']. # export: 'FC=%s' % arguments['--fc'] -# define: '-DEXTRA_FCFLAGS=%s' % arguments['--extra-fc-flags'] +# define: '-DEXTRA_FCFLAGS="%s"' % arguments['--extra-fc-flags'] enable_language(Fortran) diff --git a/test/fc/cmake/autocmake.cfg b/test/fc/cmake/autocmake.cfg index f5261f4..041edf0 100644 --- a/test/fc/cmake/autocmake.cfg +++ b/test/fc/cmake/autocmake.cfg @@ -6,7 +6,7 @@ source: https://github.com/scisoft/autocmake/raw/master/modules/fc.cmake docopt: --fc= Fortran compiler [default: gfortran]. --extra-fc-flags= Extra Fortran compiler flags [default: '']. export: 'FC=%s' % arguments['--fc'] -define: '-DEXTRA_FCFLAGS=%s' % arguments['--extra-fc-flags'] +define: '-DEXTRA_FCFLAGS="%s"' % arguments['--extra-fc-flags'] [compilers] source: https://github.com/scisoft/autocmake/raw/master/compilers/GNU.Fortran.cmake