[PATCH] cmake: Do not install .gitignore files
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 26 Oct 2024 08:59:34 +0000 (10:59 +0200)
committerPino Toscano <pino@debian.org>
Fri, 1 Nov 2024 10:12:59 +0000 (11:12 +0100)
Avoid installing .gitignore files from the resources, as they are of
no much use.

Change-Id: I606544a2125bb97124e6f2b1322ccdbfb695c08c
Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Gbp-Pq: Name upstream_cmake-Do-not-install-.gitignore-files.patch

share/CMakeLists.txt

index e47bd74f06210aaf9444dcd0e815f543dac4b5b9..36244c536113643b5c522bad99d75f85dff40a0d 100644 (file)
@@ -52,7 +52,9 @@ add_custom_command(
     )
 install(
     DIRECTORY qbs
-    DESTINATION "${QBS_RESOURCES_INSTALL_DIR}")
+    DESTINATION "${QBS_RESOURCES_INSTALL_DIR}"
+    PATTERN ".gitignore" EXCLUDE
+    )
 
 # install examples dir
 install(