mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 08:58:59 +08:00
[libtins] Fix bug in portfile.cmake (#23150)
* replace string LIBTINS_CMAKE_DIR with CMAKE_CURRENT_LIST_DIR * bump port version * Update versions/l-/libtins.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
parent
4c998fb475
commit
2934628a0e
@ -34,6 +34,8 @@ get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
|
||||
set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include")
|
||||
]])
|
||||
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libtins/libtinsConfig.cmake" "\${LIBTINS_CMAKE_DIR}/libtinsTargets.cmake" "\${CMAKE_CURRENT_LIST_DIR}/libtinsTargets.cmake")
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
||||
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "1")
|
||||
else()
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "libtins",
|
||||
"version": "4.3",
|
||||
"port-version": 5,
|
||||
"port-version": 6,
|
||||
"description": "High-level, multiplatform C++ network packet sniffing and crafting library",
|
||||
"license": "BSD-2-Clause",
|
||||
"supports": "!uwp",
|
||||
|
@ -4006,7 +4006,7 @@
|
||||
},
|
||||
"libtins": {
|
||||
"baseline": "4.3",
|
||||
"port-version": 5
|
||||
"port-version": 6
|
||||
},
|
||||
"libtomcrypt": {
|
||||
"baseline": "1.18.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4a1470befea5c6b5c7418f9b85f37d6f8733d7d5",
|
||||
"version": "4.3",
|
||||
"port-version": 6
|
||||
},
|
||||
{
|
||||
"git-tree": "9abc8b1a535ffaf99a680412cfd8f0c743c3fc6d",
|
||||
"version": "4.3",
|
||||
|
Loading…
Reference in New Issue
Block a user