mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-13 19:27:57 +08:00
3547057486
* SObjectizer updated to the latest version. * Command `x-add-version` applied for the latest sobjectizer.
27 lines
923 B
CMake
27 lines
923 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO stiffstream/sobjectizer
|
|
REF 6d88ea2741a6c50ac8bb2bf96f669ca21300373a # v.5.7.2.4
|
|
SHA512 3cef0542737dc844adcb2c6df0a84c88a95616ca634503f4edc7a5a60909269262c0a36e28ce7f761001e5572d03d8c7fe23f7e4615a2e7e8a17b16dd54fdfb3
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" SOBJECTIZER_BUILD_STATIC )
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOBJECTIZER_BUILD_SHARED)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}/dev
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DSOBJECTIZER_BUILD_STATIC=${SOBJECTIZER_BUILD_STATIC}
|
|
-DSOBJECTIZER_BUILD_SHARED=${SOBJECTIZER_BUILD_SHARED}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sobjectizer)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|