From 9221bf93908dcd72df2daca169bfb3bb76e82bf1 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 31 Oct 2024 18:21:27 -0700 Subject: [PATCH] Fix for CMake on WSL --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec26d0b7..e26b5a17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,7 +311,11 @@ endif() if(MINGW OR (NOT WIN32)) find_package(directxmath CONFIG REQUIRED) + target_link_libraries(${PROJECT_NAME} PUBLIC Microsoft::DirectXMath) + 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() find_package(directxmath CONFIG QUIET) find_package(directx-headers CONFIG QUIET)