vcpkg/ports/proj/remove-doc.patch
2023-03-06 11:55:28 -08:00

38 lines
1.1 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4c9744e6..a6d5e4eb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -318,15 +335,12 @@ include_directories(${PROJ_SOURCE_DIR}/src)
add_subdirectory(data)
add_subdirectory(include)
add_subdirectory(src)
-add_subdirectory(man)
add_subdirectory(cmake)
if(BUILD_TESTING)
add_subdirectory(test)
endif()
-set(docfiles COPYING NEWS AUTHORS)
-install(FILES ${docfiles}
- DESTINATION ${CMAKE_INSTALL_DOCDIR})
+
################################################################################
# pkg-config support
@@ -378,6 +392,7 @@ set(CPACK_SOURCE_IGNORE_FILES
include(CPack)
+if(0)
# Simplify README.md to README
add_custom_target(README
COMMAND ${CMAKE_COMMAND}
@@ -393,6 +408,7 @@ if(NOT _is_multi_config_generator)
)
message(STATUS "PROJ: Configured 'dist' target")
endif()
+endif()
configure_file(cmake/uninstall.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/proj_uninstall.cmake @ONLY)
add_custom_target(uninstall COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/proj_uninstall.cmake)