Skip to content

Commit

Permalink
Trying to solve macos ci issues.!
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed May 15, 2024
1 parent 7f61357 commit 237bb5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/metacall-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,12 @@ sub_nodejs(){
brew install node@20
# Make node 20 the default
brew link node@20 --force --overwrite
# Execute post install scripts
brew postinstall node@20
# Define node location
NODE_PREFIX=$(brew --prefix node@20)

# Configure NodeJS paths
mkdir -p build
CMAKE_CONFIG_PATH="$ROOT_DIR/build/CMakeConfig.txt"
echo "-DNodeJS_EXECUTABLE=$NODE_PREFIX/bin/node" >> $CMAKE_CONFIG_PATH
Expand Down

0 comments on commit 237bb5a

Please sign in to comment.