Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ Our Linux CI tooling is distro-independent and uses a Nix-based environment, so

### macOS

Many `xrpld` engineers use macOS for development.
Many `xrpld` engineers use macOS for development. The minimum supported version
is macOS 26, which is also what our CI builds and tests against. The build
defaults `CMAKE_OSX_DEPLOYMENT_TARGET` accordingly, so you do not need to pass it
yourself.

### Windows

Expand Down
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ if(DEFINED CMAKE_MODULE_PATH)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Default the macOS deployment target so it does not have to be passed on the
# command line. Must be set before project() because project() consumes it when
# configuring the compiler and SDK. A user-provided -DCMAKE_OSX_DEPLOYMENT_TARGET
# still takes precedence.
if(
CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin"
AND NOT DEFINED CMAKE_OSX_DEPLOYMENT_TARGET
)
set(CMAKE_OSX_DEPLOYMENT_TARGET
"26.0"
CACHE STRING
"Minimum macOS deployment version"
)
endif()

project(xrpl)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 23)
Expand Down
Loading