Skip to content

Commit 8538289

Browse files
fix: Rename libhermes to hermesvm for RN >= 82 (#262)
1 parent b54028b commit 8538289

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

android/CMakeLists.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,18 @@ if(${JS_RUNTIME} STREQUAL "hermes")
7979

8080
string(APPEND CMAKE_CXX_FLAGS " -DJS_RUNTIME_HERMES=1")
8181

82-
target_link_libraries(
83-
${PACKAGE_NAME}
84-
hermes-engine::libhermes
82+
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 82)
83+
target_link_libraries(
84+
${PACKAGE_NAME}
85+
hermes-engine::hermesvm
86+
)
87+
else()
88+
target_link_libraries(
89+
${PACKAGE_NAME}
90+
hermes-engine::libhermes
8591
)
92+
endif()
93+
8694

8795
if(${HERMES_ENABLE_DEBUGGER})
8896
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 76)

0 commit comments

Comments
 (0)