加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
install-patch.diff 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
Chris Lalancette 提交于 2021-12-17 13:24 . Update to uncrustify 0.72 (#27)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db0a6bfb..26ccf1a5 100644
--- a/CMakeLists.txt 2021-12-10 16:10:01.557816597 -0500
+++ b/CMakeLists.txt 2021-12-10 16:11:16.521464522 -0500
@@ -500,32 +500,33 @@
# Install
#
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
- install(TARGETS uncrustify DESTINATION ".")
- install(FILES ${uncrustify_docs}
- 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(TARGETS uncrustify DESTINATION ".")
+ # install(FILES ${uncrustify_docs}
+ # 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_DOCDIR}/examples"
- FILES_MATCHING PATTERN "*.cfg"
- )
- install(FILES ${uncrustify_docs}
- DESTINATION "${CMAKE_INSTALL_DOCDIR}"
- )
+ # install(FILES "${CMAKE_CURRENT_BINARY_DIR}/uncrustify.1"
+ # DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
+ # )
+ # install(DIRECTORY "${PROJECT_SOURCE_DIR}/etc/"
+ # DESTINATION "${CMAKE_INSTALL_DOCDIR}/examples"
+ # FILES_MATCHING PATTERN "*.cfg"
+ # )
+ # install(FILES ${uncrustify_docs}
+ # DESTINATION "${CMAKE_INSTALL_DOCDIR}"
+ # )
endif()
#
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化