FindGTest: CMake 3.19.0 breaks when both Release and Debug are found
After moving from CMake 3.18.5 our project files can not be generated due to GTest. I have been trying various ways of solving the problem on 3.19 but couldn't manage. After it finds the GTest library, the find_package() call generates many error messages based on that the library mode is not set etc. I've attached an example project, with our compiled GTest for demonstration. It works on 3.18.5 but can't generate with 3.19generation_error.7z