diff --git a/ReactAndroid/cmake-utils/ReactNative-application.cmake b/ReactAndroid/cmake-utils/ReactNative-application.cmake index 8671abf3b0121d..8c5682d9edd227 100644 --- a/ReactAndroid/cmake-utils/ReactNative-application.cmake +++ b/ReactAndroid/cmake-utils/ReactNative-application.cmake @@ -101,6 +101,7 @@ target_link_libraries(ReactAndroid::react_codegen_rncore INTERFACE common_flags) if(EXISTS ${PROJECT_BUILD_DIR}/generated/rncli/src/main/jni/Android-rncli.cmake) include(${PROJECT_BUILD_DIR}/generated/rncli/src/main/jni/Android-rncli.cmake) target_link_libraries(${CMAKE_PROJECT_NAME} ${AUTOLINKED_LIBRARIES}) - # TODO Re-link autlinking libraries against common_flags - # target_link_libraries(${AUTOLINKED_LIBRARIES} PRIVATE common_flags) + foreach(autolinked_library ${AUTOLINKED_LIBRARIES}) + target_link_libraries(autolinked_library INTERFACE common_flags) + endforeach() endif()