Open
Description
Describe the bug
Starting from fresh template, if use gmock option is selected, cmake generate fails.
To Reproduce
Steps to reproduce the behavior:
- Open './cmake/StandardSettings.cmake'
- Scroll down to 'option(${PROJECT_NAME}_USE_GOOGLE_MOCK "Use the GoogleMock project for extending the unit tests." OFF)'
- Modify OFF -> ON (activate gmock)
- Try to generate cmake
- See error Target "tmp_test_Tests" links to target ""GTest::gmock" but the target was not found"
- 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
Desktop (please complete the following information):
- OS: Ubuntu (WSL 2)
- Version 20.04
Additional context