aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2024-05-12 14:47:00 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-05-18 06:55:47 +0700
commit744aef7a477a35855a74622a6b5ad84d6ea1df47 (patch)
treec176f84ff8421bf06e5bde6d3f57ae080a58e0a7 /development
parent210e371598655c7ab841c83736133829d52cdb34 (diff)
downloadslackbuilds-744aef7a477a35855a74622a6b5ad84d6ea1df47.tar.xz
development/gtest: Change the cmake file install routine.
Use a more compatible (with current) one Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/gtest/gtest.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/development/gtest/gtest.SlackBuild b/development/gtest/gtest.SlackBuild
index 8de2381c4b..bf915c9da7 100644
--- a/development/gtest/gtest.SlackBuild
+++ b/development/gtest/gtest.SlackBuild
@@ -121,9 +121,10 @@ for i in gmock gmock_main gtest gtest_main ; do
> $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/${i}.pc
done
-# copy the cmake filesa
-cp -a build/googletest/CMakeFiles/Export/lib$LIBDIRSUFFIX/cmake $PKG/usr/lib$LIBDIRSUFFIX/
-install -m 0644 build/googletest/generated/*.cmake $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest
+# copy the cmake files
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest
+find build/googletest/CMakeFiles/Export build/googletest/generated \
+ -name *.cmake -exec cp {} $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest \;
mkdir -p $PKG/usr/src
cp -R googlemock $PKG/usr/src