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" },