Skip to content

Commit f6eb020

Browse files
committed
Add target_compile_reactnative_options to CMakeLists
1 parent ecfc5b0 commit f6eb020

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

packages/react-native-gesture-handler/android/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ add_library(
1414
${rn_gesture_handler_codegen_SRCS}
1515
)
1616

17+
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 80)
18+
target_compile_reactnative_options(react_codegen_rngesturehandler_codegen PRIVATE)
19+
endif()
20+
1721
target_include_directories(react_codegen_rngesturehandler_codegen PUBLIC ../shared/shadowNodes)
1822
target_include_directories(react_codegen_rngesturehandler_codegen PUBLIC ./build/generated/source/codegen/jni)
1923

packages/react-native-gesture-handler/android/src/main/jni/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ target_include_directories(
3838
"${REACT_NATIVE_DIR}/ReactCommon"
3939
)
4040

41+
if(ReactAndroid_VERSION_MINOR GREATER_EQUAL 80)
42+
target_compile_reactnative_options(${LIB_TARGET_NAME} PRIVATE)
43+
endif()
44+
4145
find_package(ReactAndroid REQUIRED CONFIG)
4246
find_package(fbjni REQUIRED CONFIG)
4347

0 commit comments

Comments
 (0)