错误信息:
[0/1] Re-running CMake...
CMake Warning at googletest/CMakeLists.txt:50 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
CMake Error at googletest/CMakeLists.txt:124 (set_target_properties):
set_target_properties called with incorrect number of arguments.
CMake Error at googletest/CMakeLists.txt:142 (set_target_properties):
set_target_properties called with incorrect number of arguments.
-- Configuring incomplete, errors occurred!
ninja: error: rebuilding 'build.ninja': subcommand failed
FAILED: build.ninja
解决方法
在CmakeLists.txt设置一个属性即可
版本号可以设置成你下载的版本
set(GOOGLETEST_VERSION 1.15.0)