Skip to content

Fix issue with including as external project in cmake

Hans Gaiser requested to merge hgaiser/gtest:cmake-fix into main

This is related to the following issues:

https://bugs.archlinux.org/task/60216

https://bugs.archlinux.org/task/68440

They have both been marked as fixed, but they don't appear to be fixed. The issue is that if you include gtest or gmock in your CMake project, it fails to run because GOOGLETEST_VERSION is not defined. This variable is defined in the toplevel CMakeLists.txt file, which is not installed by the PKGBUILD.

This PR changes the structure to, as far as I can tell, the intended structure for gtest and gmock.

Edited by Hans Gaiser

Merge request reports

Loading