2020-01-22 23:17:15 +03:00
|
|
|
vcpkg_from_github(
|
2019-10-07 19:35:13 +02:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-22 23:17:15 +03:00
|
|
|
REPO stiffstream/sobjectizer
|
2023-05-24 21:57:44 +03:00
|
|
|
REF "v.${VERSION}"
|
2024-03-26 01:52:28 +03:00
|
|
|
SHA512 74c4cc8ae670b53df347d9158005285c4ee2bfea09feab0ac88e43b3161dcc8b38072bb6f3f7c17d9b5341cde82c5ed71835f4abd1c28f151b5370128dc250b2
|
2019-10-07 19:35:13 +02:00
|
|
|
)
|
2017-06-22 13:38:03 +03:00
|
|
|
|
2021-02-18 23:59:36 +03:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SOBJECTIZER_BUILD_STATIC )
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOBJECTIZER_BUILD_SHARED)
|
2017-06-22 13:38:03 +03:00
|
|
|
|
2022-01-08 01:58:29 +03:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/dev"
|
2017-06-22 13:38:03 +03:00
|
|
|
OPTIONS
|
2017-12-06 19:18:31 +03:00
|
|
|
-DSOBJECTIZER_BUILD_STATIC=${SOBJECTIZER_BUILD_STATIC}
|
|
|
|
-DSOBJECTIZER_BUILD_SHARED=${SOBJECTIZER_BUILD_SHARED}
|
2017-06-22 13:38:03 +03:00
|
|
|
)
|
|
|
|
|
2022-01-08 01:58:29 +03:00
|
|
|
vcpkg_cmake_install()
|
2017-06-22 13:38:03 +03:00
|
|
|
|
2022-01-08 01:58:29 +03:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-22 23:17:15 +03:00
|
|
|
|
2022-01-08 01:58:29 +03:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sobjectizer)
|
2017-06-29 20:07:00 +03:00
|
|
|
|
2022-01-08 01:58:29 +03:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-01-22 23:17:15 +03:00
|
|
|
|