You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If testing is disabled, I would expect all dependencies on googletest to be removed. However, the internal test_allocator target inside of the container directory still gets created, which expects the GTest::gmock target to exist. As a result, if googletest isn't available, a CMake error will be raised due to the gmock target not existing.
Steps to reproduce the problem
Run CMake with testing disabled on a system without googletest installed.
What version of Abseil are you using?
20240116 (as part of protobuf)
What operating system and version are you using?
Windows 10
What compiler and version are you using?
Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33812 for x86
What build system are you using?
cmake version 3.30.0
Additional context
No response
The text was updated successfully, but these errors were encountered:
I'm seeing the same thing. I suspect that a change in a recent version of cmake (possibly 3.30.0) as identical code built with earlier versions of CMake isn't failing.
Describe the issue
If testing is disabled, I would expect all dependencies on googletest to be removed. However, the internal
test_allocator
target inside of the container directory still gets created, which expects theGTest::gmock
target to exist. As a result, if googletest isn't available, a CMake error will be raised due to the gmock target not existing.Steps to reproduce the problem
Run CMake with testing disabled on a system without googletest installed.
What version of Abseil are you using?
20240116 (as part of protobuf)
What operating system and version are you using?
Windows 10
What compiler and version are you using?
Microsoft (R) C/C++ Optimizing Compiler Version 19.40.33812 for x86
What build system are you using?
cmake version 3.30.0
Additional context
No response
The text was updated successfully, but these errors were encountered: