Fix build error at cmake 3.21.3
[platform/upstream/gtest.git] / packaging / gtest.spec
index 904a5bf..03570f1 100644 (file)
@@ -9,6 +9,7 @@ License:    BSD-3-Clause
 
 Group:      Definition/Libraries/C and C++
 Source0:    %{name}-%{version}.tar.gz
+Source1:    Fix-build-error-at-cmake.patch
 Source1001: %{name}.manifest
 
 # ==========================================================
@@ -39,6 +40,7 @@ Google C++ Testing Framework
 %prep
 %setup -q
 cp %{SOURCE1001} .
+%{__patch} -p1 < %{SOURCE1}
 
 # ==========================================================
 # build section