Skip to content

Do not use EXCLUDE_FROM_ALL with FetchContent - #340

Draft
ClausKlein wants to merge 8 commits into
mainfrom
feature/install_right
Draft

ClausKlein wants to merge 8 commits into
mainfrom
feature/install_right

Conversation

@ClausKlein

Copy link
Copy Markdown

And install right with depencencies

And install right with depencencies
@ClausKlein
ClausKlein requested a review from ednolan as a code owner November 25, 2026 19:14
@ClausKlein
ClausKlein marked this pull request as draft November 25, 2026 19:14
Comment thread CMakeLists.txt Outdated
beman.utf_view
TARGETS beman.utf_view
DEPENDENCIES "[===[beman.transform_view]===]"
DEPENDENCIES "[===[beman.transform_view 0.2.2]===]"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important!

@coveralls

coveralls commented Nov 25, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 99.784%. remained the same — feature/install_right into main

Comment thread CMakeLists.txt Outdated
set(BEMAN_TRANSFORM_VIEW_USE_MODULES ON)
endif()
find_package(beman.transform_view REQUIRED)
find_package(beman.transform_view 0.2.2 REQUIRED)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO: The version should be used to

@ClausKlein ClausKlein self-assigned this Nov 25, 2026
Comment thread triplets/CMakeLists.txt Outdated
Comment on lines +13 to +16
set_target_properties(utf_view_smoke PROPERTIES
CXX_STANDARD 26
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pre-commit] reported by reviewdog 🐶

Suggested change
set_target_properties(utf_view_smoke PROPERTIES
CXX_STANDARD 26
CXX_STANDARD_REQUIRED YES
CXX_EXTENSIONS NO
set_target_properties(
utf_view_smoke
PROPERTIES CXX_STANDARD 26 CXX_STANDARD_REQUIRED YES CXX_EXTENSIONS NO

Comment thread triplets/x64-osx-beman-modules.cmake Outdated
Comment on lines +11 to +13
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
"-DBEMAN_UTF_VIEW_USE_MODULES=ON"
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pre-commit] reported by reviewdog 🐶

Suggested change
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
"-DBEMAN_UTF_VIEW_USE_MODULES=ON"
)
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS "-DBEMAN_UTF_VIEW_USE_MODULES=ON")

Comment thread triplets/x64-osx-beman-modules.cmake Outdated
"-DBEMAN_UTF_VIEW_USE_MODULES=ON"
)
elseif(PORT STREQUAL "beman-transform-view")
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[pre-commit] reported by reviewdog 🐶

Suggested change
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
list(
APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS

@ClausKlein ClausKlein left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ednolan FYI

Comment thread CMakeLists.txt
if(BEMAN_USE_FETCH_CONTENT_ENABLED)
beman_install_library(
beman.utf_view
TARGETS beman.utf_view beman.transform_view

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a missleading usage without the generated dependency!

Comment on lines +142 to +143
GIT_SHALLOW ON
# XXX EXCLUDE_FROM_ALL

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EXCLUDE_FROM_ALL prevent the installation target for the fetched project
GIT_SHALLOW save disk space and time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants