Skip to content

Commit

Permalink
Remove redundant CMake slashes when installing files
Browse files Browse the repository at this point in the history
Using a trailing slash results in install commands that contain two
slashes between the base directory and the path being installed.
  • Loading branch information
davvid authored Feb 29, 2024
1 parent c05eee8 commit 80756b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,17 @@ endif()
install(TARGETS nvim-qt DESTINATION ${CMAKE_INSTALL_BINDIR})
if(NOT APPLE)
install(DIRECTORY runtime
DESTINATION ${CMAKE_INSTALL_DATADIR}/nvim-qt/
DESTINATION ${CMAKE_INSTALL_DATADIR}/nvim-qt
PATTERN "README.md" EXCLUDE)
install(FILES ${PROJECT_SOURCE_DIR}/LICENSE
DESTINATION ${CMAKE_INSTALL_DATADIR}/nvim-qt/)
DESTINATION ${CMAKE_INSTALL_DATADIR}/nvim-qt)
install(FILES nvim-qt.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
install(FILES ${PROJECT_SOURCE_DIR}/third-party/neovim.png
RENAME nvim-qt.png
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/192x192/apps/)
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/192x192/apps)
install(FILES ${PROJECT_SOURCE_DIR}/third-party/neovim.svg
RENAME nvim-qt.svg
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/)
DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps)
endif()

if(WIN32 AND NOT CMAKE_CROSSCOMPILING AND NOT DEFINED USE_STATIC_QT)
Expand Down

0 comments on commit 80756b4

Please sign in to comment.