mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 14:09:01 +08:00
a44feca8c4
* SObjectizer updated to v.5.7.2.3. * New ver of SObjectizer added to versions list. * Change 'version-string' to 'version'. * Update for sobjectizer version in versions list.
27 lines
923 B
CMake
27 lines
923 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO stiffstream/sobjectizer
|
|
REF 20379c163b7e361dd72e2dfa5356ff59fe886cb1 # v.5.7.2.3
|
|
SHA512 74f5fc91a8e64b7ce3c5ba5c97ce1f495624799bb63a01453262f17d9128ad00e8d93cdf537a67dbab6d08525796263c83c187506bed1c3eabcfa2baf49f43a9
|
|
)
|
|
|
|
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)
|
|
|