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

cmake_layout new values #2618

Merged
merged 1 commit into from Jun 28, 2022
Merged
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
12 changes: 6 additions & 6 deletions reference/conanfile/tools/cmake/cmake_layout.rst
Expand Up @@ -36,7 +36,7 @@ These are the values assigned by the ``cmake_layout``:
- ``conanfile.folders.source``: *src_folder* argument or ``.`` if not specified.
- ``conanfile.folders.build``:
- ``build``: if the cmake generator is multi-configuration.
- ``cmake-build-debug`` or ``cmake-build-debug``: if the cmake generator is single-configuration, depending on the
- ``build/Debug`` or ``build/Release``: if the cmake generator is single-configuration, depending on the
build_type.
- ``conanfile.folders.generators``: ``build/generators``
- ``conanfile.cpp.source.includedirs``: ``["include"]``
Expand Down Expand Up @@ -68,9 +68,9 @@ For the previous example, the values assigned by the ``cmake_layout`` (installin
configuration) would be:

- ``conanfile.folders.build``:
- ``build-apple-clang-shared_false``: if the cmake generator is multi-configuration.
- ``cmake-build-debug-apple-clang-shared_false``: if the cmake generator is single-configuration.
- ``conanfile.folders.generators``: ``build-apple-clang-shared_false/generators``
- ``build/apple-clang-shared_false``: if the cmake generator is multi-configuration.
- ``build/apple-clang-shared_false/Debug``: if the cmake generator is single-configuration.
- ``conanfile.folders.generators``: ``build/generators``

If we repeat the previous install with a different configuration:

Expand All @@ -81,8 +81,8 @@ If we repeat the previous install with a different configuration:
The values assigned by the ``cmake_layout`` (installing the Release/shared configuration) would be:

- ``conanfile.folders.build``:
- ``build-apple-clang-shared_true``: if the cmake generator is multi-configuration.
- ``cmake-build-debug-apple-clang-shared_true``: if the cmake generator is single-configuration.
- ``build/apple-clang-shared_true``: if the cmake generator is multi-configuration.
- ``build/apple-clang-shared_true/Debug``: if the cmake generator is single-configuration.
- ``conanfile.folders.generators``: ``build-apple-clang-shared_true/generators``


Expand Down