Skip to content

Commit

Permalink
CMake targets fixes for optional vs. required packages (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Jun 16, 2023
1 parent abcc4ab commit 71755f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/DirectXTK-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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@")

0 comments on commit 71755f8

Please sign in to comment.