From 98ccd915df542fc42e64ae5065a59d4dfcc2a54d Mon Sep 17 00:00:00 2001 From: memsharded Date: Wed, 18 Dec 2024 12:44:40 +0100 Subject: [PATCH 1/2] jinja profile rendering paths --- reference/config_files/profiles.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/reference/config_files/profiles.rst b/reference/config_files/profiles.rst index 28940bfc59be..4c235048c156 100644 --- a/reference/config_files/profiles.rst +++ b/reference/config_files/profiles.rst @@ -626,6 +626,10 @@ Some of the capabilities of the profile templates are: [settings] build_type = {{ vars.a }} + When including or importing other files using relative paths, the Jinja renderer uses the base path of the + current profile file as the first location to look for. If this search fails, the Jinja rendered + will also start looking in the Conan home profiles folder (typically in ``/.conan2/profiles``). + - Any other feature supported by *jinja2* is possible: for loops, if-else, etc. This would be useful to define custom per-package settings or options for multiple packages in a large dependency graph. From 36b41f5831e28b56f597820e4716ccfb6703342c Mon Sep 17 00:00:00 2001 From: James Date: Wed, 18 Dec 2024 13:05:12 +0100 Subject: [PATCH 2/2] Update reference/config_files/profiles.rst MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Abril Rincón Blanco --- reference/config_files/profiles.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/config_files/profiles.rst b/reference/config_files/profiles.rst index 4c235048c156..81f3ed555873 100644 --- a/reference/config_files/profiles.rst +++ b/reference/config_files/profiles.rst @@ -627,7 +627,7 @@ Some of the capabilities of the profile templates are: build_type = {{ vars.a }} When including or importing other files using relative paths, the Jinja renderer uses the base path of the - current profile file as the first location to look for. If this search fails, the Jinja rendered + current profile file as the first location to look for. If this search fails, the Jinja renderer will also start looking in the Conan home profiles folder (typically in ``/.conan2/profiles``). - Any other feature supported by *jinja2* is possible: for loops, if-else, etc. This