Skip to content

Commit 55e2dcd

Browse files
committed
Use framework in weak-node-api
1 parent d4748bf commit 55e2dcd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/host/weak-node-api/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ project(weak-node-api)
33

44
add_library(${PROJECT_NAME} SHARED
55
weak_node_api.cpp
6-
${CMAKE_JS_SRC}
76
)
87

98
# Stripping the prefix from the library name
109
# to make sure the name of the XCFramework will match the name of the library
1110
if(APPLE)
12-
set_target_properties(${PROJECT_NAME} PROPERTIES PREFIX "")
11+
set_target_properties(${PROJECT_NAME} PROPERTIES
12+
FRAMEWORK TRUE
13+
MACOSX_FRAMEWORK_IDENTIFIER com.callstack.${PROJECT_NAME}
14+
MACOSX_FRAMEWORK_SHORT_VERSION_STRING 1.0
15+
MACOSX_FRAMEWORK_BUNDLE_VERSION 1.0
16+
XCODE_ATTRIBUTE_SKIP_INSTALL NO
17+
)
1318
endif()
1419

1520
target_include_directories(${PROJECT_NAME}

0 commit comments

Comments
 (0)