[Bug]: CMake error (set_target_properties)
- Dominant language
- C++
- Stars
- 39.5k
- Forks
- 10.9k
- Avg merge
- 6d 13h
- Merged PRs (30d)
- 1
Description
### Describe the issue
When I build the cmake of googletest v1.14 i receive this error messages:
```
CMake Warning at test/lib/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 test/lib/googletest/CMakeLists.txt:124 (set_target_properties):
set_target_properties called with incorrect number of arguments.
CMake Error at test/lib/googletest/CMakeLists.txt:142 (set_target_properties):
set_target_properties called with incorrect number of arguments.
```
### Steps to reproduce the problem
Build/reload/debug the cmake of googletest inside the googletest directory (/googletest-main/googletest/CMakeList.txt)
### What version of GoogleTest are you using?
1.14
### What operating system and version are you using?
Linux
### What compiler and version are you using?
gcc version 13.2.1
### What build system are you using?
cmake version 3.29.2
### Additional context
_No response_
Contributor guide
Research direction
Inspect test/lib/googletest/CMakeLists.txt at lines 50, 124, and 142, then reproduce the configuration using GoogleTest 1.14 with CMake 3.29.2, GCC 13.2.1, and Linux. Done means the CMake configure or reload completes without the VERSION warning or set_target_properties errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100