diff --git a/modules/int64.cmake b/modules/int64.cmake index 944ea3b..45f4b23 100644 --- a/modules/int64.cmake +++ b/modules/int64.cmake @@ -9,7 +9,7 @@ # autocmake.cfg configuration:: # # docopt: --int64 Enable 64bit integers [default: False]. -# define: '-DENABLE_64BIT_INTEGERS=%s' % arguments['--int64'] +# define: '-DENABLE_64BIT_INTEGERS={0}'.format(arguments['--int64']) option(ENABLE_64BIT_INTEGERS "Enable 64-bit integers" OFF) diff --git a/modules/math/accelerate.cmake b/modules/math/accelerate.cmake index 36eb3ce..529f9c2 100644 --- a/modules/math/accelerate.cmake +++ b/modules/math/accelerate.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --accelerate Find and link to ACCELERATE [default: False]. -# define: '-DENABLE_ACCELERATE=%s' % arguments['--accelerate'] +# define: '-DENABLE_ACCELERATE={0}'.format(arguments['--accelerate']) # fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake diff --git a/modules/math/acml.cmake b/modules/math/acml.cmake index 01a375c..a533adf 100644 --- a/modules/math/acml.cmake +++ b/modules/math/acml.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --acml Find and link to ACML [default: False]. -# define: '-DENABLE_ACML=%s' % arguments['--acml'] +# define: '-DENABLE_ACML={0}'.format(arguments['--acml']) option(ENABLE_ACML "Find and link to ACML" OFF) diff --git a/modules/math/atlas.cmake b/modules/math/atlas.cmake index 64c5bab..37b47c2 100644 --- a/modules/math/atlas.cmake +++ b/modules/math/atlas.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --atlas Find and link to ATLAS [default: False]. -# define: '-DENABLE_ATLAS=%s' % arguments['--atlas'] +# define: '-DENABLE_ATLAS={0}'.format(arguments['--atlas']) option(ENABLE_ATLAS "Find and link to ATLAS" OFF) diff --git a/modules/math/blas.cmake b/modules/math/blas.cmake index fdcda94..47da0b1 100644 --- a/modules/math/blas.cmake +++ b/modules/math/blas.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --blas Find and link to BLAS [default: False]. -# define: '-DENABLE_BLAS=%s' % arguments['--blas'] +# define: '-DENABLE_BLAS={0}'.format(arguments['--blas']) option(ENABLE_BLAS "Find and link to BLAS" OFF) diff --git a/modules/math/cblas.cmake b/modules/math/cblas.cmake index 378cf9b..4d2fe09 100644 --- a/modules/math/cblas.cmake +++ b/modules/math/cblas.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --cblas Find and link to CBLAS [default: False]. -# define: '-DENABLE_CBLAS=%s' % arguments['--cblas'] +# define: '-DENABLE_CBLAS={0}'.format(arguments['--cblas']) # fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake diff --git a/modules/math/goto.cmake b/modules/math/goto.cmake index df9fb6d..0c3e269 100644 --- a/modules/math/goto.cmake +++ b/modules/math/goto.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --goto Find and link to GOTO [default: False]. -# define: '-DENABLE_GOTO=%s' % arguments['--goto'] +# define: '-DENABLE_GOTO={0}'.format(arguments['--goto']) option(ENABLE_GOTO "Find and link to GOTO" OFF) diff --git a/modules/math/lapack.cmake b/modules/math/lapack.cmake index e86e53e..799eee4 100644 --- a/modules/math/lapack.cmake +++ b/modules/math/lapack.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --lapack Find and link to LAPACK [default: False]. -# define: '-DENABLE_LAPACK=%s' % arguments['--lapack'] +# define: '-DENABLE_LAPACK={0}'.format(arguments['--lapack']) option(ENABLE_LAPACK "Find and link to LAPACK" OFF) diff --git a/modules/math/lapacke.cmake b/modules/math/lapacke.cmake index 3afbeab..5d93ff5 100644 --- a/modules/math/lapacke.cmake +++ b/modules/math/lapacke.cmake @@ -11,7 +11,7 @@ # autocmake.cfg configuration:: # # docopt: --lapacke Find and link to LAPACKE [default: False]. -# define: '-DENABLE_LAPACKE=%s' % arguments['--lapacke'] +# define: '-DENABLE_LAPACKE={0}'.format(arguments['--lapacke']) # fetch: https://github.com/coderefinery/autocmake/raw/master/modules/find/find_libraries.cmake # https://github.com/coderefinery/autocmake/raw/master/modules/find/find_include_files.cmake diff --git a/modules/math_libs.cmake b/modules/math_libs.cmake index e3d3bf2..23c64c9 100644 --- a/modules/math_libs.cmake +++ b/modules/math_libs.cmake @@ -42,9 +42,9 @@ # docopt: --blas= Detect and link BLAS library (auto or off) [default: auto]. # --lapack= Detect and link LAPACK library (auto or off) [default: auto]. # --mkl= Pass MKL flag to the Intel compiler and linker and skip BLAS/LAPACK detection (sequential, parallel, cluster, or off) [default: off]. -# define: '-DENABLE_BLAS=%s' % arguments['--blas'] -# '-DENABLE_LAPACK=%s' % arguments['--lapack'] -# '-DMKL_FLAG=%s' % arguments['--mkl'] +# define: '-DENABLE_BLAS={0}'.format(arguments['--blas']) +# '-DENABLE_LAPACK={0}'.format(arguments['--lapack']) +# '-DMKL_FLAG={0}'.format(arguments['--mkl']) # '-DMATH_LIB_SEARCH_ORDER="MKL;ESSL;OPENBLAS;ATLAS;ACML;SYSTEM_NATIVE"' # '-DBLAS_LANG=Fortran' # '-DLAPACK_LANG=Fortran' diff --git a/modules/mpi.cmake b/modules/mpi.cmake index 7f73eac..cb64a41 100644 --- a/modules/mpi.cmake +++ b/modules/mpi.cmake @@ -16,7 +16,7 @@ # autocmake.cfg configuration:: # # docopt: --mpi Enable MPI parallelization [default: False]. -# define: '-DENABLE_MPI=%s' % arguments['--mpi'] +# define: '-DENABLE_MPI={0}'.format(arguments['--mpi']) option(ENABLE_MPI "Enable MPI parallelization" OFF) diff --git a/modules/omp.cmake b/modules/omp.cmake index 9784868..1a6e9b4 100644 --- a/modules/omp.cmake +++ b/modules/omp.cmake @@ -16,7 +16,7 @@ # autocmake.cfg configuration:: # # docopt: --omp Enable OpenMP parallelization [default: False]. -# define: '-DENABLE_OPENMP=%s' % arguments['--omp'] +# define: '-DENABLE_OPENMP={0}'.format(arguments['--omp']) option(ENABLE_OPENMP "Enable OpenMP parallelization" OFF) diff --git a/modules/python_interpreter.cmake b/modules/python_interpreter.cmake index a726da9..54509a0 100644 --- a/modules/python_interpreter.cmake +++ b/modules/python_interpreter.cmake @@ -18,7 +18,7 @@ # autocmake.cfg configuration:: # # docopt: --python= The Python interpreter (development version) to use. [default: '']. -# define: '-DPYTHON_INTERPRETER="%s"' % arguments['--python'] +# define: '-DPYTHON_INTERPRETER="{0}"'.format(arguments['--python']) if("${PYTHON_INTERPRETER}" STREQUAL "") find_package(PythonInterp REQUIRED)