Skip to content

Commit

Permalink
Fix for CMake on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Nov 1, 2024
1 parent 77272b1 commit e723a2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ endif()
if(MINGW OR (NOT WIN32))
find_package(directxmath 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()
find_package(directxmath CONFIG QUIET)
find_package(directx-headers CONFIG QUIET)
Expand Down

0 comments on commit e723a2f

Please sign in to comment.