From 799e7eee964b9fef1abc0d8c8c65d36963041683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Fri, 9 Feb 2024 11:14:48 +0100 Subject: [PATCH] Support latest `bare-dev` (#189) --- CMakeLists.txt | 4 ++-- package.json | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07a5e57e..c71f1c37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -385,7 +385,7 @@ endif() add_bare_module(sodium_native) target_sources( - sodium_native + ${sodium_native} PRIVATE binding.c macros.h @@ -394,7 +394,7 @@ target_sources( ) target_link_libraries( - sodium_native + ${sodium_native} PUBLIC sodium ) diff --git a/package.json b/package.json index 02884fa3..1eecb855 100644 --- a/package.json +++ b/package.json @@ -18,9 +18,7 @@ "vendor/libsodium/src/**/*.h.in", "vendor/libsodium/src/**/*.S" ], - "addon": { - "target": "sodium_native" - }, + "addon": true, "dependencies": { "node-gyp-build": "^4.6.0" },