We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb9239d commit 39b40b8Copy full SHA for 39b40b8
cmake/gpu.cmake
@@ -61,9 +61,14 @@ else()
61
# if not found, try download from release
62
else()
63
message("libdawn not found, try downloading from the release")
64
+ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
65
+ set(libdawn_ext "dylib")
66
+ elseif(UNIX)
67
+ set(libdawn_ext "so")
68
+ endif()
69
FetchContent_Declare(
70
libdawn
- URL https://github.com/austinvhuang/dawn-artifacts/releases/download/prerelease/libdawn.dylib
71
+ URL https://github.com/austinvhuang/dawn-artifacts/releases/download/prerelease/libdawn.${libdawn_ext}
72
DOWNLOAD_NO_EXTRACT TRUE
73
SOURCE_DIR "${TARGET_FILE_PATH}/third_party/lib")
74
FetchContent_MakeAvailable(libdawn)
0 commit comments