Skip to content

fix(rpc): Fix CMake header-only library targets for velox_rpc_types and velox_rpc_client (#16748)#16748

Closed
zhichenxu-meta wants to merge 1 commit intofacebookincubator:mainfrom
zhichenxu-meta:export-D96329737
Closed

fix(rpc): Fix CMake header-only library targets for velox_rpc_types and velox_rpc_client (#16748)#16748
zhichenxu-meta wants to merge 1 commit intofacebookincubator:mainfrom
zhichenxu-meta:export-D96329737

Conversation

@zhichenxu-meta
Copy link
Contributor

@zhichenxu-meta zhichenxu-meta commented Mar 12, 2026

Summary:

#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737

@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit a3851b0
🔍 Latest deploy log https://app.netlify.com/projects/meta-velox/deploys/69b345fcd7d59000087e0b1c

@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 Mar 12, 2026
@zhichenxu-meta zhichenxu-meta force-pushed the export-D96329737 branch 2 times, most recently from 58c9198 to af0f880 Compare March 12, 2026 17:41
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:
Pull Request resolved: facebookincubator#16748

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
@meta-codesync
Copy link

meta-codesync bot commented Mar 12, 2026

@zhichenxu-meta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D96329737.

zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
@Yuhta Yuhta linked an issue Mar 12, 2026 that may be closed by this pull request
zhichenxu-meta added a commit to zhichenxu-meta/velox that referenced this pull request Mar 12, 2026
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
…nd velox_rpc_client (facebookincubator#16748)

Summary:

facebookincubator#16748

velox_rpc_types and velox_rpc_client are header-only libraries (no .cpp
source files). Without the INTERFACE keyword, CMake cannot determine the
linker language, causing a build failure on macOS:

  CMake Error: CMake can not determine linker language for target: velox_rpc_types

Mark both as INTERFACE libraries and use INTERFACE linkage for
velox_rpc_client dependencies.

Reviewed By: xiaoxmeng

Differential Revision: D96329737
@meta-codesync meta-codesync bot changed the title fix(rpc): Fix CMake header-only library targets for velox_rpc_types and velox_rpc_client fix(rpc): Fix CMake header-only library targets for velox_rpc_types and velox_rpc_client (#16748) Mar 12, 2026
@meta-codesync meta-codesync bot closed this in 87c8f7e Mar 13, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 13, 2026

This pull request has been merged in 87c8f7e.

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. fb-exported Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to build with -DVELOX_MONO_LIBRARY=OFF

2 participants