加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install-patch.diff 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db0a6bfb..26ccf1a5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -440,33 +440,33 @@ include(CPack)
# Install
#
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
- install(TARGETS uncrustify DESTINATION ".")
- install(
- FILES
- "${PROJECT_SOURCE_DIR}/README.md"
- "${PROJECT_SOURCE_DIR}/BUGS"
- "${PROJECT_SOURCE_DIR}/ChangeLog"
- DESTINATION "."
- )
- install(FILES "${PROJECT_SOURCE_DIR}/documentation/htdocs/index.html"
- DESTINATION "doc"
- )
- install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/"
- DESTINATION "cfg"
- FILES_MATCHING PATTERN "*.cfg"
- )
+ install(TARGETS uncrustify RUNTIME DESTINATION bin)
+ # install(
+ # FILES
+ # "${PROJECT_SOURCE_DIR}/README.md"
+ # "${PROJECT_SOURCE_DIR}/BUGS"
+ # "${PROJECT_SOURCE_DIR}/ChangeLog"
+ # DESTINATION "."
+ # )
+ # install(FILES "${PROJECT_SOURCE_DIR}/documentation/htdocs/index.html"
+ # DESTINATION "doc"
+ # )
+ # install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/"
+ # DESTINATION "cfg"
+ # FILES_MATCHING PATTERN "*.cfg"
+ # )
else()
include(GNUInstallDirs)
install(TARGETS uncrustify
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
- install(FILES "${CMAKE_CURRENT_BINARY_DIR}/uncrustify.1"
- DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
- )
- install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/"
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/uncrustify"
- FILES_MATCHING PATTERN "*.cfg"
- )
+ # install(FILES "${CMAKE_CURRENT_BINARY_DIR}/uncrustify.1"
+ # DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
+ # )
+ # install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/"
+ # DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/uncrustify"
+ # FILES_MATCHING PATTERN "*.cfg"
+ # )
endif()
#
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化