[node-api] Fix MacOS linking errors (#29013)

* fix

* add version
This commit is contained in:
Leonid Pospelov 2023-01-19 03:35:52 +06:00 committed by GitHub
parent b23dcc7894
commit 3f18689c2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View File

@ -13,6 +13,12 @@ set_target_properties(unofficial::node-api::node-api PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${node-api_INCLUDE_DIR}"
)
if(APPLE)
set_target_properties(unofficial::node-api::node-api PROPERTIES
INTERFACE_LINK_OPTIONS "LINKER:SHELL:-undefined dynamic_lookup"
)
endif()
if(WIN32)
find_library(node-api_LIBRARY_RELEASE NAMES node PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH REQUIRED)
find_library(node-api_LIBRARY_DEBUG NAMES node PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH REQUIRED)

View File

@ -1,6 +1,7 @@
{
"name": "node-api",
"version-semver": "18.12.1",
"port-version": 1,
"description": "NodeJS API for writing modules in C++",
"homepage": "https://nodejs.org/api/addons.html",
"license": null,

View File

@ -5346,7 +5346,7 @@
},
"node-api": {
"baseline": "18.12.1",
"port-version": 0
"port-version": 1
},
"nonius": {
"baseline": "2019-04-20",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "1b12126f91686d77b2ea46cd9c7e311f000f7bb9",
"version-semver": "18.12.1",
"port-version": 1
},
{
"git-tree": "174e2ac98335fd5510219bd9e0b550b51ce14ee3",
"version-semver": "18.12.1",