Skip to content

[BUG] Gmock target not found #36

Open
@radupaulstefan

Description

@radupaulstefan

Describe the bug
Starting from fresh template, if use gmock option is selected, cmake generate fails.

To Reproduce
Steps to reproduce the behavior:

  1. Open './cmake/StandardSettings.cmake'
  2. Scroll down to 'option(${PROJECT_NAME}_USE_GOOGLE_MOCK "Use the GoogleMock project for extending the unit tests." OFF)'
  3. Modify OFF -> ON (activate gmock)
  4. Try to generate cmake
  5. See error Target "tmp_test_Tests" links to target ""GTest::gmock" but the target was not found"
  6. See error Target "tmp_test_Tests" links to target ""GTest::gmock_main" but the target was not found"

Expected behavior
Generation should work without any error

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu (WSL 2)
  • Version 20.04

Additional context

Metadata

Metadata

Assignees

Labels

acknowledgedThe issue is being worked onbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions