From 70f7cc20eb8b35f405e33d3929bb81c8a451e137 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 29 Oct 2021 21:14:21 -0700 Subject: [PATCH] Update CMake config with find_dependency --- .nuget/DirectXTK12-config.cmake.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.nuget/DirectXTK12-config.cmake.in b/.nuget/DirectXTK12-config.cmake.in index 2a48522..7d818e0 100644 --- a/.nuget/DirectXTK12-config.cmake.in +++ b/.nuget/DirectXTK12-config.cmake.in @@ -1,5 +1,11 @@ @PACKAGE_INIT@ include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake) +include(CMakeFindDependencyMacro) + +if(VCPKG_TOOLCHAIN) + find_dependency(directx-headers CONFIG) + find_dependency(directxmath CONFIG) +endif() check_required_components("@PROJECT_NAME@")