Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 0fface9

Browse files
Adjust order of linked libraries to fix Ubuntu compilation (#7684)
1 parent 7cb2ea2 commit 0fface9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • site/en/blog/webgpu-cross-platform

site/en/blog/webgpu-cross-platform/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "Learn how to build an app with WebGPU for the web and specific pla
55
hero: "image/vvhSqZboQoZZN9wBvoXq72wzGAf1/C9CyIqxrytYlH4uqCbgX.jpg"
66
alt: "Landscape photography of person's hand in front of sunrise."
77
date: 2023-07-20
8-
#updated: YYYY-MM-DD
8+
updated: 2023-10-30
99
authors:
1010
- beaufortfrancois
1111
tags:
@@ -81,13 +81,13 @@ $ git submodule add https://dawn.googlesource.com/dawn
8181
Then, append to the `CMakeLists.txt` file as follows:
8282
- The CMake `DAWN_FETCH_DEPENDENCIES` option will fetch all Dawn dependencies.
8383
- The `dawn/` sub folder will be included in the target.
84-
- Your app will depend on `webgpu_dawn`, `webgpu_cpp`, and `webgpu_glfw` targets so that you can use them in the `main.cpp` file later.
84+
- Your app will depend on `webgpu_cpp`, `webgpu_dawn`, and `webgpu_glfw` targets so that you can use them in the `main.cpp` file later.
8585

8686
```cmake
8787
8888
set(DAWN_FETCH_DEPENDENCIES ON)
8989
add_subdirectory("dawn" EXCLUDE_FROM_ALL)
90-
target_link_libraries(app PRIVATE webgpu_dawn webgpu_cpp webgpu_glfw)
90+
target_link_libraries(app PRIVATE webgpu_cpp webgpu_dawn webgpu_glfw)
9191
```
9292

9393
### Open a window
@@ -336,7 +336,7 @@ if(EMSCRIPTEN)
336336
else()
337337
set(DAWN_FETCH_DEPENDENCIES ON)
338338
add_subdirectory("dawn" EXCLUDE_FROM_ALL)
339-
target_link_libraries(app PRIVATE webgpu_dawn webgpu_cpp webgpu_glfw)
339+
target_link_libraries(app PRIVATE webgpu_cpp webgpu_dawn webgpu_glfw)
340340
endif()
341341
```
342342

0 commit comments

Comments
 (0)