vcpkg/ports/azure-security-keyvault-keys-cpp/useragent.patch

14 lines
683 B
Diff
Raw Normal View History

diff --git a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
index 18098c757..7bda8dba0 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
@@ -132,6 +132,8 @@ target_include_directories(
target_link_libraries(azure-security-keyvault-keys PUBLIC Azure::azure-core)
+target_compile_definitions(azure-security-keyvault-keys PRIVATE _azure_BUILDING_SDK)
+
# coverage. Has no effect if BUILD_CODE_COVERAGE is OFF
create_code_coverage(keyvault azure-security-keyvault-keys azure-security-keyvault-keys-test "tests?/*;samples?/*")