mirror of
https://github.com/microsoft/DirectXTex.git
synced 2026-02-12 07:36:14 +01:00
CMake targets fixes for optional vs. required packages (#369)
This commit is contained in:
@@ -14,8 +14,11 @@ if(ENABLE_OPENEXR_SUPPORT)
|
||||
endif()
|
||||
|
||||
if(MINGW OR (NOT WIN32))
|
||||
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@")
|
||||
|
||||
Reference in New Issue
Block a user