Skip to content

Commit

Permalink
CMake targets fixes for optional vs. required packages (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn authored Jun 16, 2023
1 parent 0bb539d commit 98f4113
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/DirectXTK12-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
include(CMakeFindDependencyMacro)

if(MINGW)
find_dependency(directx-headers CONFIG)
find_dependency(directxmath CONFIG)
find_dependency(directx-headers)
find_dependency(directxmath)
else()
find_package(directx-headers CONFIG QUIET)
find_package(directxmath CONFIG QUIET)
endif()

check_required_components("@PROJECT_NAME@")

0 comments on commit 98f4113

Please sign in to comment.