Skip to content

Commit c2bb6d3

Browse files
committed
Cleanup CMakeLists.
1 parent d3c29b0 commit c2bb6d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sqlite3/assets/wasm/CMakeLists.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ FetchContent_Declare(
1717

1818
FetchContent_MakeAvailable(sqlite3)
1919

20-
set(POWERSYNC_A "${CMAKE_BINARY_DIR}/libpowersync-wasm.a")
21-
2220
file(DOWNLOAD https://raw.githubusercontent.com/sqlite/sqlite/master/src/test_vfstrace.c "${CMAKE_BINARY_DIR}/vfstrace.c")
23-
file(DOWNLOAD https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v0.3.0/libpowersync-wasm.a "${POWERSYNC_A}")
21+
22+
set(POWERSYNC_VERSION "0.3.0")
23+
set(POWERSYNC_A "${CMAKE_BINARY_DIR}/libpowersync-wasm.a")
24+
file(DOWNLOAD "https://github.com/powersync-ja/powersync-sqlite-core/releases/download/v${POWERSYNC_VERSION}/libpowersync-wasm.a" "${POWERSYNC_A}")
2425

2526
# Generate symbols we need to export from the sqlite3.wasm build
2627
add_custom_command(

0 commit comments

Comments
 (0)