Skip to content

VRS cmake: fix fbsource build for rapidjson and Ocean (#249)#249

Closed
georges-berenger wants to merge 1 commit into
facebookresearch:mainfrom
georges-berenger:export-D108821160
Closed

VRS cmake: fix fbsource build for rapidjson and Ocean (#249)#249
georges-berenger wants to merge 1 commit into
facebookresearch:mainfrom
georges-berenger:export-D108821160

Conversation

@georges-berenger

@georges-berenger georges-berenger commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Summary:

Fix the VRS cmake build system to work in fbsource, while preserving OSS build compatibility.

  • FindRapidjsonLib.cmake: Add fbsource third-party search path (${VRS_SOURCE_DIR}/../../../third-party/rapidjson/include) with NO_DEFAULT_PATH to avoid picking up old system rapidjson v1.1.0. Falls back to git clone for OSS builds. Remove bogus add_dependencies(rapidjson::rapidjson rapidjson) referencing non-existent target.

  • FindOcean.cmake: Add fbsource xplat/ocean search path, build via add_subdirectory if found. Falls back to FetchContent from github for OSS builds.

This allows cmake -S arvr/libraries/vrs -B build -G Ninja to succeed in fbsource without internet access, using in-tree rapidjson and Ocean. Other dependencies (fmt, lz4, zstd, xxhash, etc.) are found via homebrew/system paths.

Differential Revision: D108821160

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 17, 2026
@meta-codesync

meta-codesync Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

@georges-berenger has exported this pull request. If you are a Meta employee, you can view the originating Diff in D108821160.

@meta-codesync meta-codesync Bot changed the title VRS cmake: fix fbsource build for rapidjson and Ocean VRS cmake: fix fbsource build for rapidjson and Ocean (#249) Jun 17, 2026
georges-berenger added a commit to georges-berenger/vrs-1 that referenced this pull request Jun 17, 2026
…ch#249)

Summary:

Fix the VRS cmake build system to work in fbsource, while preserving OSS build compatibility.

- FindRapidjsonLib.cmake: Add fbsource third-party search path (${VRS_SOURCE_DIR}/../../../third-party/rapidjson/include) with NO_DEFAULT_PATH to avoid picking up old system rapidjson v1.1.0. Falls back to git clone for OSS builds. Remove bogus add_dependencies(rapidjson::rapidjson rapidjson) referencing non-existent target.

- FindOcean.cmake: Add fbsource xplat/ocean search path, build via add_subdirectory if found. Falls back to FetchContent from github for OSS builds.

This allows `cmake -S arvr/libraries/vrs -B build -G Ninja` to succeed in fbsource without internet access, using in-tree rapidjson and Ocean. Other dependencies (fmt, lz4, zstd, xxhash, etc.) are found via homebrew/system paths.

Differential Revision: D108821160
georges-berenger added a commit to georges-berenger/vrs-1 that referenced this pull request Jun 17, 2026
…ch#249)

Summary:

Fix the VRS cmake build system to work in fbsource, while preserving OSS build compatibility.

- FindRapidjsonLib.cmake: Add fbsource third-party search path (${VRS_SOURCE_DIR}/../../../third-party/rapidjson/include) with NO_DEFAULT_PATH to avoid picking up old system rapidjson v1.1.0. Falls back to git clone for OSS builds. Remove bogus add_dependencies(rapidjson::rapidjson rapidjson) referencing non-existent target.

- FindOcean.cmake: Add fbsource xplat/ocean search path, build via add_subdirectory if found. Falls back to FetchContent from github for OSS builds.

This allows `cmake -S arvr/libraries/vrs -B build -G Ninja` to succeed in fbsource without internet access, using in-tree rapidjson and Ocean. Other dependencies (fmt, lz4, zstd, xxhash, etc.) are found via homebrew/system paths.

Differential Revision: D108821160
…ch#249)

Summary:

Fix the VRS cmake build system to work in fbsource, while preserving OSS build compatibility.

- FindRapidjsonLib.cmake: Add fbsource third-party search path (${VRS_SOURCE_DIR}/../../../third-party/rapidjson/include) with NO_DEFAULT_PATH to avoid picking up old system rapidjson v1.1.0. Falls back to git clone for OSS builds. Remove bogus add_dependencies(rapidjson::rapidjson rapidjson) referencing non-existent target.

- FindOcean.cmake: Add fbsource xplat/ocean search path, build via add_subdirectory if found. Falls back to FetchContent from github for OSS builds.

This allows `cmake -S arvr/libraries/vrs -B build -G Ninja` to succeed in fbsource without internet access, using in-tree rapidjson and Ocean. Other dependencies (fmt, lz4, zstd, xxhash, etc.) are found via homebrew/system paths.

Differential Revision: D108821160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant