1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00

Fix for CMake on WSL (#546)

This commit is contained in:
Chuck Walbourn 2024-11-01 13:59:27 -07:00 committed by GitHub
parent 77272b1303
commit 4602b8e0f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,7 +311,11 @@ endif()
if(MINGW OR (NOT WIN32)) if(MINGW OR (NOT WIN32))
find_package(directxmath CONFIG REQUIRED) find_package(directxmath CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath)
find_package(directx-headers CONFIG REQUIRED) find_package(directx-headers CONFIG REQUIRED)
target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectX-Headers)
target_compile_definitions(${PROJECT_NAME} PUBLIC USING_DIRECTX_HEADERS)
else() else()
find_package(directxmath CONFIG QUIET) find_package(directxmath CONFIG QUIET)
find_package(directx-headers CONFIG QUIET) find_package(directx-headers CONFIG QUIET)