]> git.sven.stormbind.net Git - sven/vym.git/commitdiff
Use cmakes install directory with a trailing slash
authorSven Hoexter <sven@stormbind.net>
Sun, 5 May 2024 09:48:46 +0000 (11:48 +0200)
committerSven Hoexter <sven@stormbind.net>
Sun, 5 May 2024 10:00:00 +0000 (12:00 +0200)
Ensure that only the files a copied and not the directory
itself.

debian/patches/cmake-installs.patch

index 77a1e093b9323ae724ee43a60db8d15144d616f8..a15d2349b879405a41257487e159deb43a2a74ee 100644 (file)
@@ -12,7 +12,7 @@ Index: vym/CMakeLists.txt
  
  install(DIRECTORY demos DESTINATION ${CMAKE_INSTALL_DATAROOTDIR})
 -install(DIRECTORY doc DESTINATION ${CMAKE_INSTALL_DOCDIR})
-+install(FILES doc/vym.pdf doc/vym_fr.pdf doc/vym_es.pdf DESTINATION ${CMAKE_INSTALL_DOCDIR})
++install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} FILES_MATCHING PATTERN "*.pdf")
  install(FILES doc/vym.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR})
 -install(FILES README.md LICENSE.txt DESTINATION ${CMAKE_INSTALL_DOCDIR})
 +install(FILES README.md DESTINATION ${CMAKE_INSTALL_DOCDIR})