Skip to content

Commit

Permalink
Propage common flag to autolinked libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Oct 3, 2022
1 parent 43cf78d commit e35aa98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ReactAndroid/cmake-utils/ReactNative-application.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ 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
foreach(autolinked_library ${AUTOLINKED_LIBRARIES})
target_link_libraries(autolinked_library INTERFACE common_flags)
endforeach()
# target_link_libraries(${AUTOLINKED_LIBRARIES} PRIVATE common_flags)
endif()

0 comments on commit e35aa98

Please sign in to comment.