Skip to content

Windows protobuf CMake fix for PREFER_SYSTEM_LIB with DEV_MODE#8711

Merged
snnn merged 1 commit intomicrosoft:masterfrom
NathanielMcVicar:no_protobuf_compile_option_system_lib
Aug 12, 2021
Merged

Windows protobuf CMake fix for PREFER_SYSTEM_LIB with DEV_MODE#8711
snnn merged 1 commit intomicrosoft:masterfrom
NathanielMcVicar:no_protobuf_compile_option_system_lib

Conversation

@NathanielMcVicar
Copy link
Contributor

@NathanielMcVicar NathanielMcVicar commented Aug 12, 2021

Description: You cannot set a PRIVATE option on a system library, so this adds a check to avoid setting a warning on protobuf when onnxruntime_PREFER_SYSTEM_LIBS is set, very similar to the UNIX condition above.
Motivation: Trying to set target_compile_options on a system library results in a CMake failure.

Signed-off-by: Nathaniel McVicar <namcvica@microsoft.com>
@NathanielMcVicar NathanielMcVicar requested a review from a team as a code owner August 12, 2021 18:03
@snnn
Copy link
Contributor

snnn commented Aug 12, 2021

/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux CPU x64 NoContribops CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux Nuphar CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, MacOS NoContribops CI Pipeline

@snnn
Copy link
Contributor

snnn commented Aug 12, 2021

/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, Windows WebAssembly CI Pipeline, onnxruntime-python-checks-ci-pipeline, orttraining-amd-gpu-ci-pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed

@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 9 pipeline(s).

@snnn snnn merged commit ce6675a into microsoft:master Aug 12, 2021
@snnn
Copy link
Contributor

snnn commented Aug 12, 2021

Thank you!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants