Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and clarification for folders.source #2117

Merged
merged 2 commits into from Jun 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion developing_packages/package_layout.rst
Expand Up @@ -65,7 +65,7 @@ file when using the :ref:`CMakeDeps<conan_tools_cmake>` generator because it wil
settings = "os", "build_type", "arch"
requires = "zlib/1.2.11"
generators = "CMakeDeps", "CMakeToolchain"
exports_sources = "src"
exports_sources = "src*"

def layout(self):
self.folders.build = "cmake-build-{}".format(str(self.settings.build_type).lower())
Expand Down
3 changes: 2 additions & 1 deletion reference/conanfile/methods.rst
Expand Up @@ -1470,7 +1470,8 @@ self.folders
- **self.folders.source** (Defaulted to ""): Specifies a subfolder where the sources are. The ``self.source_folder`` attribute and
the *current working directory* inside the ``source(self)`` method will be set with this subfolder. It is used in the cache when running
:command:`conan create` (relative to the cache source folder) as well as in a local folder when running :command:`conan source`
(relative to the local current folder).
(relative to the local current folder). Note: Both the `export_sources`, `exports` and `scm` sources will be copied to the root source
directory, being the **self.folders.source** variable the way to describe if the fetched sources are still in a subfolder.

- **self.folders.build** (Defaulted to ""): Specifies a subfolder where the files from the build are. The ``self.build_folder`` attribute and
the *current working directory* inside the ``build(self)`` method will be set with this subfolder. It is used in the cache when running
Expand Down