diff options
| author | JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> | 2021-09-16 05:12:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-15 14:12:57 -0700 |
| commit | 790418c9037196ef499b642decc2cd880e15db30 (patch) | |
| tree | 9728de5c10cf78fa873c13216e4b42c664239c03 /ports/cmark/add-feature-tools.patch | |
| parent | d95314bccccd95a0b24904961ece7c7be54529a0 (diff) | |
| download | vcpkg-790418c9037196ef499b642decc2cd880e15db30.tar.gz vcpkg-790418c9037196ef499b642decc2cd880e15db30.zip | |
[cmark] update to 0.30.1 (#18938)
* [cmark] update to 0.30.0
* update version
* update portfile.cmake
* update version
* add patch
* update version
* fix-uwp-APPX0703
* update version
* [cmark] update to 0.30.1
* update version
* update portfile.cmake
* update version
* update version
* Add feature tools
* version stuff
* Add feature tools and remove the old unnecessary patch
* version
* delete outdate option
* update version
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/cmark/add-feature-tools.patch')
| -rw-r--r-- | ports/cmark/add-feature-tools.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/ports/cmark/add-feature-tools.patch b/ports/cmark/add-feature-tools.patch new file mode 100644 index 000000000..5410ff68b --- /dev/null +++ b/ports/cmark/add-feature-tools.patch @@ -0,0 +1,54 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 3a78d0b..7065c89 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -52,6 +52,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmark_version.h.in + include(GNUInstallDirs) + include (GenerateExportHeader) + ++if (BUILD_TOOLS) + add_executable(${PROGRAM} ${PROGRAM_SOURCES}) + cmark_add_compile_options(${PROGRAM}) + set_target_properties(${PROGRAM} PROPERTIES +@@ -65,6 +66,7 @@ if (CMARK_STATIC) + elseif (CMARK_SHARED) + target_link_libraries(${PROGRAM} ${LIBRARY}) + endif() ++endif() + + # -fvisibility=hidden + set(CMAKE_C_VISIBILITY_PRESET hidden) +@@ -114,23 +116,30 @@ if (CMARK_STATIC) + list(APPEND CMARK_INSTALL ${STATICLIBRARY}) + endif() + +-if (MSVC) ++if (MSVC AND BUILD_TOOLS) + set_property(TARGET ${PROGRAM} + APPEND PROPERTY LINK_FLAGS /INCREMENTAL:NO) +-endif(MSVC) ++endif(MSVC AND BUILD_TOOLS) + + if(NOT MSVC OR CMAKE_HOST_SYSTEM_NAME STREQUAL Windows) + set(CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_NO_WARNINGS ON) + include(InstallRequiredSystemLibraries) + endif() + +-install(TARGETS ${PROGRAM} ${CMARK_INSTALL} ++install(TARGETS ${CMARK_INSTALL} + EXPORT cmark-targets + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + ++if (BUILD_TOOLS) ++ install(TARGETS ${PROGRAM} ++ EXPORT cmark-targets ++ RUNTIME DESTINATION tools/cmark ++ ) ++endif() ++ + if(CMARK_SHARED OR CMARK_STATIC) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libcmark.pc.in + ${CMAKE_CURRENT_BINARY_DIR}/libcmark.pc @ONLY) |
