From 72ea777e86dedea10c3f08c3d7f9716885c3d4ea Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Fri, 16 Jun 2023 09:07:28 -0700 Subject: [PATCH] CMake targets fixes for optional vs. required packages --- build/DirectXTK-config.cmake.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/DirectXTK-config.cmake.in b/build/DirectXTK-config.cmake.in index 07bd2bbe..f63ff78b 100644 --- a/build/DirectXTK-config.cmake.in +++ b/build/DirectXTK-config.cmake.in @@ -11,7 +11,9 @@ if (BUILD_XAUDIO_WIN7 AND (NOT BUILD_XAUDIO_WIN10) AND (NOT BUILD_XAUDIO_WIN8) A endif() if(MINGW) - find_dependency(directxmath CONFIG) + find_dependency(directxmath) +else() + find_package(directxmath CONFIG QUIET) endif() check_required_components("@PROJECT_NAME@")