vcpkg/ports/tidy-html5/static-vs-shared.patch
Kai Pastor b01fbe8d6f
[tidy-html5] Update to 5.8.0, dynamic linkage, unique link lib name ()
* Update to 5.8.0

* Revise portfile

* Disable doc

* Enable shared linkage

* Fix debug pc file

* Fix PDB installation

* Update versions

* Revert lost version
2022-07-07 14:33:38 -07:00

35 lines
1.2 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d2edac2..979ae25 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -395,11 +395,11 @@ endif ()
#------------------------------------------------------------------------
# Static Library
-# The static library always builds.
+if(NOT BUILD_SHARED_LIB)
#------------------------------------------------------------------------
set(name tidy-static)
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
-if (WIN32)
+if (0)
set_target_properties( ${name} PROPERTIES
OUTPUT_NAME ${LIB_NAME}_static )
else ()
@@ -415,12 +415,14 @@ install(TARGETS ${name}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
)
-install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} )
if(MSVC)
# install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION lib OPTIONAL)
INSTALL(FILES ${PROJECT_BINARY_DIR}/${name}.dir/Debug/${name}.pdb
+ OPTIONAL
DESTINATION lib CONFIGURATIONS Debug )
endif()
+endif()
+install( FILES ${HFILES} DESTINATION ${INCLUDE_INSTALL_DIR} )
#------------------------------------------------------------------------
# Dynamic Library