google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
33.68k stars 9.98k forks source link

[Bug]: CMake error (set_target_properties) #4525

Open Gabriele04 opened 2 months ago

Gabriele04 commented 2 months ago

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

tobbi commented 1 month ago

Same as #4309. Should be fixed by #4539