Skip to content

gtest and gmock are inadvertantly installed using older versions of CMake #32

@camio

Description

@camio

FechContent's EXCLUDE_FROM_ALL keyword in CMake 3.30+ has the impact of ignoring install commands in the dependency project. However, this behavior does not manifest in earlier CMake versions which results in exemplar's gtest dependency being installed when CMake's install target is executed.

CMake 3.30 came out recently (July 2024), so forcing users to upgrade to use beman.exemplar is a bit much to ask.

My suggested fix is to set INSTALL_GTEST to FALSE using a block that contains the FetchContent call.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions