Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit e4a7d18

Browse files
authored
CMake targets fixes for optional vs. required packages (#23)
1 parent 524a4c9 commit e4a7d18

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build/DXUT-config.cmake.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ include(${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Opt-targets.cmake)
55
include(CMakeFindDependencyMacro)
66

77
if(MINGW)
8-
find_dependency(directxmath CONFIG)
8+
find_dependency(directxmath)
9+
else()
10+
find_package(directxmath CONFIG QUIET)
911
endif()
1012

1113
check_required_components("@PROJECT_NAME@")

0 commit comments

Comments
 (0)