-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ConanCI bot
committed
Oct 24, 2023
1 parent
0c1573e
commit 1de79fd
Showing
36 changed files
with
1,642 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. _reference_config_files_conanrc: | ||
|
||
.conanrc | ||
======== | ||
|
||
.. warning:: | ||
|
||
This feature is in **preview**. | ||
See :ref:`the Conan stability<stability>` section for more information. | ||
|
||
The **.conanrc** file can be placed in the folder where you are running Conan or any | ||
parent folder. This file is used to set up the Conan user home directory by defining the | ||
`conan_home` value. This value will take precedence over the :ref:`CONAN_HOME | ||
<reference_environment_variables_conan_home>` environment variable in case it's also | ||
defined. Below are some examples of how you can define the Conan user home in the | ||
**.conanrc** file: | ||
|
||
Set the Conan home to an absolute folder: | ||
|
||
.. code-block:: bash | ||
# accepts comments | ||
conan_home=/absolute/folder | ||
Set the Conan home to a relative folder inside the current folder: | ||
|
||
.. code-block:: bash | ||
conan_home=./relative/folder/inside/current/folder | ||
Set the Conan home to a relative folder outside the current folder: | ||
|
||
.. code-block:: bash | ||
conan_home=../relative/folder/outside/current/folder | ||
Set the Conan home to a path containing the `~` symbol, which will be expanded to the system's user home: | ||
|
||
.. code-block:: bash | ||
conan_home=~/use/the/user/home/to/expand/it | ||
Be aware that the **.conanrc** file is searched for in all parent folders. For | ||
example, in this structure: | ||
|
||
.. code-block:: bash | ||
. | ||
.conanrc | ||
|-- project1 | ||
|-- project2 | ||
If you are running from the folder `project1`, the parent folders are traversed recursively | ||
until a **.conanrc** file is found, in case it exists. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.