Skip to content

Commit 897c307

Browse files
fix if nesting
1 parent b9dca65 commit 897c307

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/gpu.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ else()
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()
7981
endif()

0 commit comments

Comments
 (0)