-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From ef9fcbcce828b777fd22e00b4092b525a2dc3b17 Mon Sep 17 00:00:00 2001 | ||
From: Chuck Walbourn <[email protected]> | ||
Date: Thu, 31 Oct 2024 18:29:06 -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 ae19481..5656d03 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -139,7 +139,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) | ||
-- | ||
2.47.0.windows.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters