vcpkg/ports/sobjectizer/portfile.cmake
eao197 03ca9b59af
[sobjectizer] Update to v.5.7.3 (#22399)
* sobjectizer updated to v5.7.3.

* so5extra updated to v1.5.0.

* so5extra-1.5.0 added to baseline.

* Fixes for old cmake commands.

* Update baseline for sobjectizer/so5extra.

* modernize cmake functions

* update version

* modernize cmake functions

* update version

* udpate version

Co-authored-by: Jonliu1993 <13720414433@163.com>
2022-01-07 14:58:29 -08:00

26 lines
911 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO stiffstream/sobjectizer
REF 4c3bf6e9da4eae21fa5cce31dd464aabaec803a4 # v.5.7.3
SHA512 e5de6753d44c85c8077b133af1823bf892e1e7361659bbfc424b39c2f123e3b1c99b1292908e32034b538ef2410a41587c51723c8f8e1ffd85badd559f2a393c
)
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)