Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake targets fixes for optional vs. required packages #394

Merged
merged 1 commit into from
Jun 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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@")