vcpkg/ports/umock-c/portfile.cmake
ewertons c258d0947d Revert "[azure] Update azure-iot-sdk-c for 07/2019 LTS refresh (#8686)" (#8731)
This reverts commit bc11674db1.

The LTS release broke the regular port of azure-iot-sdk-c.
This will be fixed and re-published.
2019-10-24 15:47:53 -07:00

33 lines
853 B
CMake

include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Azure/umock-c
REF 87d2214384c886a1e2406ac0756a0b3786add8da
SHA512 230b6c79a8346727bbc124d1aefaa14da8ecd82b2a56d68b3d2511b8efa5931872da440137a5d266835ba8c5193b83b4bc5ee85abb5242d07904a0706727926c
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-Drun_unittests=OFF
-Drun_int_tests=OFF
-Duse_installed_dependencies=ON
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/umock_c)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
configure_file(${SOURCE_PATH}/readme.md ${CURRENT_PACKAGES_DIR}/share/umock-c/copyright COPYONLY)
vcpkg_copy_pdbs()