vcpkg/ports/sobjectizer/portfile.cmake
eao197 e58d3f01f1
[sobjectizer] Update to 5.8.0 (so5extra updated to 1.6.0) (#32321)
* SObjectizer updated to 5.8.0, so5extra to 1.6.0.

* x-add-version applied for SObjectize-5.8.0 and so5extra-1.6.0.

* SObjectizer updated to v.5.8.0.1.

* x-add-version for SObjectizer-5.8.0.1

* Fix version DB

---------

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2023-07-13 10:21:06 -07:00

26 lines
875 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/sobjectizer
REF "v.${VERSION}"
SHA512 b1131c25477f397e58d79ea5489b8ed42a7ca8f2ff7592f8ff2972bb7c905f1b23ec9596573b60d7c5beaa169d0dd8882210b4c39daa8213ea06134bde44ebde
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SOBJECTIZER_BUILD_STATIC )
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOBJECTIZER_BUILD_SHARED)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}/dev"
OPTIONS
-DSOBJECTIZER_BUILD_STATIC=${SOBJECTIZER_BUILD_STATIC}
-DSOBJECTIZER_BUILD_SHARED=${SOBJECTIZER_BUILD_SHARED}
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sobjectizer)
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)