Skip to content

Commit

Permalink
feat: Add CMake C++ flags now
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Jan 13, 2025
1 parent 15c3d34 commit ac8dad3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react-native-nitro-modules/android/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ add_library(NitroModules SHARED
${android_files}
)

# Add C++ flags
if (HAS_REACT_NATIVE)
message(STATUS "Building with React Native v${REACT_NATIVE_VERSION}...")
add_compile_definitions(HAS_REACT_NATIVE REACT_NATIVE_VERSION=${REACT_NATIVE_VERSION})
endif ()

# Specifies a path to native header files.
include_directories(
# Shared C++ includes
Expand Down

0 comments on commit ac8dad3

Please sign in to comment.