Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3505390
D6108.id20757.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6108.id20757.diff
View Options
diff --git a/native/cpp/CommonCpp/NativeModules/CMakeLists.txt b/native/cpp/CommonCpp/NativeModules/CMakeLists.txt
--- a/native/cpp/CommonCpp/NativeModules/CMakeLists.txt
+++ b/native/cpp/CommonCpp/NativeModules/CMakeLists.txt
@@ -1,6 +1,10 @@
project(comm-modules)
cmake_minimum_required(VERSION 3.4)
+# For C++17 on MacOS, we must set minimum target to 10.14+
+set(CMAKE_CXX_STANDARD 17)
+set(CMAKE_OSX_DEPLOYMENT_TARGET 10.14)
+
include(GNUInstallDirs)
set(NATIVE_HDRS
@@ -19,6 +23,7 @@
)
set_target_properties(comm-modules-native PROPERTIES LINKER_LANGUAGE CXX)
+target_compile_options(comm-modules-native PRIVATE -Wc++17-extensions)
# reference local directory when building, use installation path when installing
target_include_directories(comm-modules-native
@@ -31,6 +36,8 @@
"../../../../node_modules/react-native/ReactCommon/jsi"
"../../../../node_modules/react-native/ReactCommon/react/nativemodule/core"
"../../../../node_modules/react-native/ReactCommon/callinvoker"
+ "../../../../node_modules/react-native/ReactCommon"
+ "../../../native_rust_library"
)
set(_message_path ./PersistentStorageUtilities/MessageOperationsUtilities)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 1:16 PM (18 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2687374
Default Alt Text
D6108.id20757.diff (1 KB)
Attached To
Mode
D6108: [Native] Fix native modules CMake build
Attached
Detach File
Event Timeline
Log In to Comment