Skip to content

Commit 43863ce

Browse files
committed
Error if weak-node-api is included outside of cmake-rn (for now)
1 parent 6c58b3f commit 43863ce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/weak-node-api/weak-node-api.cmake

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
if(NOT DEFINED WEAK_NODE_API_LIB)
2+
# TODO: Set this to an Android and Apple specific path to the dynamic library
3+
message(FATAL_ERROR "WEAK_NODE_API_LIB is not set")
4+
endif()
5+
6+
if(NOT DEFINED WEAK_NODE_API_INC)
7+
# TODO: Set this to ./include and ./generated
8+
message(FATAL_ERROR "WEAK_NODE_API_INC is not set")
9+
endif()
10+
111
add_library(weak-node-api SHARED IMPORTED)
212

313
set_target_properties(weak-node-api PROPERTIES

0 commit comments

Comments
 (0)