Skip to content

Commit

Permalink
fix build cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed May 24, 2023
1 parent b5dd1b9 commit 2f4bf09
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
# node-cld3
# node-cld3

Wrapper around the cld3 library. (WIP)

1. Clone this repository
2. Ensure you are using Node.js 18
3. Run `npm install`
4. Test with `node test/index.js`
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"dependencies": {
"bindings": "^1.5.0",
"cmake-js": "^7.2.1",
"node-addon-api": "^6.0.0"
"node-addon-api": "^6.1.0"
}
}
2 changes: 1 addition & 1 deletion scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const root = path.join(__dirname, '..');
const cld3Path = path.join(root, 'cld3');

execSync('rm -rf cld3', { cwd: root });
execSync('git clone https://github.com/google/cld3.git', { cwd: root });
execSync('git clone https://github.com/Aschen/cld3.git', { cwd: root });
execSync('rm -rf cld3/.git', { cwd: root });
execSync('mkdir -p build', { cwd: cld3Path });
execSync('cmake -S . -B ./build', { cwd: cld3Path });
Expand Down

0 comments on commit 2f4bf09

Please sign in to comment.