Skip to contentSkip to conversation

cmake: FindGTest: Add target for gmock library

PATCH Eero Aaltonen 2 participants 2 messages Dec 3, 2021 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 4 lines · Eero Aaltonen via lists.openembedded.org

Update Modules/FindGTest.cmake to provide the same targets as the CMake Config-file Package and backwards compatible targets and result variables.

Bump.

The googletest recipe at meta-oe dunfell branch is for version 1.10. The fact that CMake Find Module masked the targets of the GTest package resulted in a number of very confusing build failures.

This patch is mostly about backporting the fixed forwarding behaviour from the Find Module to the Config-file Package that was released in CMake v3.20.0.

Signature · 1 line
Eero Aaltonen
#2 lore raw
Quoted 9 lines · Eero Aaltonen
Quoted 4 lines · Eero Aaltonen via lists.openembedded.org

Update Modules/FindGTest.cmake to provide the same targets as the CMake Config-file Package and backwards compatible targets and result variables.

Bump.

See the patch set I sent out for review earlier today.

Steve

Quoted 21 lines

The googletest recipe at meta-oe dunfell branch is for version 1.10. The fact that CMake Find Module masked the targets of the GTest package resulted in a number of very confusing build failures.

This patch is mostly about backporting the fixed forwarding behaviour from the Find Module to the Config-file Package that was released in CMake v3.20.0.

--
Eero Aaltonen

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#159115): https://lists.openembedded.org/g/openembedded-core/message/159115
Mute This Topic: https://lists.openembedded.org/mt/87401815/3620601
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-