mirror of
https://github.com/triqs/dft_tools
synced 2024-10-31 19:23:45 +01:00
31 lines
1.2 KiB
ReStructuredText
31 lines
1.2 KiB
ReStructuredText
.. index:: install_options
|
|
|
|
.. highlight:: bash
|
|
|
|
.. _install_options:
|
|
|
|
Customizing installation: cmake options
|
|
---------------------------------------
|
|
|
|
Specifying the compiler or compile/link flags
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
To specify the compiler with cmake one may use the CXX, CXXFLAGS variables, e.g.::
|
|
|
|
CXX=clang++ CXXFLAGS=XXXX cmake path_to_TRIQS_source_directory ...
|
|
|
|
cmake options
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
+--------------------------------------+------------------------------------------------+
|
|
| Options | Syntax |
|
|
+======================================+================================================+
|
|
| Build the documentation | -DBuild_Documentation=ON |
|
|
+--------------------------------------+------------------------------------------------+
|
|
| Special python interpreter | -DPYTHON_INTERPRETER=path/python |
|
|
+--------------------------------------+------------------------------------------------+
|
|
| Specify the installation directory | -DCMAKE_INSTALL_PREFIX=install_path |
|
|
+--------------------------------------+------------------------------------------------+
|
|
|