catchorg / catchorg/Catch2

Install not possible when subproject

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

Description

**Describe the bug**
[When packaging Catch2 for conan](https://github.com/conan-io/conan-center-index/pull/4043/files#diff-0140ae23568b0a9b904472e3fc10ece8e57f33da4a29f5ad62fb13e9636e9a7eR42-R45), it refused to do the install due to a wrapper `CMakeLists.txt`. It should be possible to enable the installation optionally, even if it is used as a subproject. Maybe with a `option(CATCH_FORCE_INSTALL "Force install targets." OFF)` instead of [hard-denying](https://github.com/catchorg/Catch2/blob/devel/CMakeLists.txt#L5-L7) it.

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.