Compare commits

...

2 Commits

Author SHA1 Message Date
0xmbe
1a0e874e8e
Merge c05228b7019e03b62fb868e53356d134dfa1c857 into add971c7cb497d40985b48641891bf9b51423730 2026-05-21 08:43:11 +01:00
0xmbe
c05228b701
Update CMakeLists.txt
Fixed 2 bugs:

CMake Error at CMakeLists.txt:124 (set_target_properties):
  set_target_properties called with incorrect number of arguments.

CMake Error at CMakeLists.txt:142 (set_target_properties):
  set_target_properties called with incorrect number of arguments.
2025-02-03 12:29:48 +01:00

View File

@ -121,7 +121,7 @@ include_directories(${gtest_build_include_dirs})
# are used for other targets, to ensure that gtest can be compiled by a user
# aggressive about warnings.
cxx_library(gtest "${cxx_strict}" src/gtest-all.cc)
set_target_properties(gtest PROPERTIES VERSION ${GOOGLETEST_VERSION})
set_target_properties(gtest PROPERTIES VERSION "${GOOGLETEST_VERSION}")
if(GTEST_HAS_ABSL)
target_compile_definitions(gtest PUBLIC GTEST_HAS_ABSL=1)
target_link_libraries(gtest PUBLIC
@ -136,7 +136,7 @@ if(GTEST_HAS_ABSL)
)
endif()
cxx_library(gtest_main "${cxx_strict}" src/gtest_main.cc)
set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION})
set_target_properties(gtest_main PROPERTIES VERSION "${GOOGLETEST_VERSION}")
string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}")
target_include_directories(gtest SYSTEM INTERFACE
"$<BUILD_INTERFACE:${dirs}>"