catchorg / catchorg/Catch2

Installing Catch2 when using FetchContent

Open
#2,164 11 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
21.5k
Forks
3.5k
Avg merge
3d 16h
Merged PRs (30d)
2

Description

Due to the behaviors documented in https://github.com/catchorg/Catch2/issues/1373 Catch doesn't install anything when used as a subproject but this doesn't allow it to be installed when used through the FetchContent macro, that requires the package to be added with the add_subdirectory.

Could be useful to add an option, maybe even mark as advanced if necessary, to force the installation if the user wants to, even when used as subproject

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.