mirror of
https://github.com/triqs/dft_tools
synced 2024-12-27 06:43:40 +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 |
|
|
+--------------------------------------+------------------------------------------------+
|
|
|