From c05228b7019e03b62fb868e53356d134dfa1c857 Mon Sep 17 00:00:00 2001 From: 0xmbe Date: Mon, 3 Feb 2025 12:29:48 +0100 Subject: [PATCH] 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. --- googletest/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt index dce6a7c9..b2f72c7a 100644 --- a/googletest/CMakeLists.txt +++ b/googletest/CMakeLists.txt @@ -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 @@ -139,7 +139,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 ";" "$" dirs "${gtest_build_include_dirs}") target_include_directories(gtest SYSTEM INTERFACE "$"