We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b0abd commit 99e848fCopy full SHA for 99e848f
1 file changed
android/CMakeLists.txt
@@ -78,12 +78,26 @@ endif()
78
79
find_package(hermes-engine REQUIRED CONFIG)
80
81
- string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_HERMES=1")
+string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_HERMES=1")
82
83
+if(TARGET hermes-engine::hermesvm)
84
+ target_link_libraries(
85
+ ${PACKAGE_NAME}
86
+ hermes-engine::hermesvm
87
+ )
88
+elseif(TARGET hermes-engine::libhermes)
89
target_link_libraries(
90
${PACKAGE_NAME}
91
hermes-engine::libhermes
92
)
93
+elseif(TARGET hermes-engine::hermes)
94
95
96
+ hermes-engine::hermes
97
98
+else()
99
+ message(FATAL_ERROR "react-native-hermes-worker: no Hermes engine target found")
100
+endif()
101
102
if(${HERMES_ENABLE_DEBUGGER})
103
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)
0 commit comments