File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 5858 message (STATUS "Found libdawn: ${LIBDAWN} " )
5959 # Link against libdawn
6060 target_link_libraries (webgpulib INTERFACE ${LIBDAWN} )
61+ # if not found, try download from release
6162 else ()
6263 message (
6364 FATAL_ERROR "libdawn not found, try downloading from the release" )
@@ -67,13 +68,14 @@ else()
6768 DOWNLOAD_DIR
6869 "${TARGET_FILE_PATH} /third_party/lib" )
6970 FetchContent_MakeAvailable(libdawn)
70- find_library (LIBDAWN dawn REQUIRED PATHS "${TARGET_FILE_PATH} /third_party/lib" )
71+ find_library (LIBDAWN dawn REQUIRED
72+ PATHS "${TARGET_FILE_PATH} /third_party/lib" )
7173 if (LIBDAWN)
7274 message (STATUS "Found libdawn: ${LIBDAWN} " )
7375 # Link against libdawn
7476 target_link_libraries (webgpulib INTERFACE ${LIBDAWN} )
7577 else ()
76- message (
77- FATAL_ERROR "libdawn not found" )
78+ message (FATAL_ERROR "libdawn not found" )
7879 endif ()
80+ endif ()
7981endif ()
You can’t perform that action at this time.
0 commit comments