Skip to content

[C++] Suppress vcpkg manifest disabled messages from msbuild #28616

@asfimport

Description

@asfimport

When building the Arrow library without using vcpkg on a Windows system that has vcpkg installed, msbuild emits this message repeatedly during the build:

The vcpkg manifest was disabled, but we found a manifest file in $(VcpkgManifestRoot). You may want to enable vcpkg manifests in your properties page or pass /p:VcpkgEnableManifest=true to the msbuild invocation.
This is of no consequence but it's annoying. See if we can configure the cmake files to add /p:VcpkgEnableManifest=false to the compiler flags to suppress this message when vcpkg is not being used for dependencies.

E.g. in SetupCxxFlags.cmake, add a conditional like this, including a status message.

if(MSVC AND NOT ARROW_DEPENDENCY_SOURCE STREQUAL "VCPKG")
  message(STATUS "Disabling the vcpkg manifest. To enable the vcpkg manifest, set -DARROW_DEPENDENCY_SOURCE=VCPKG")
  set(CXX_COMMON_FLAGS "${CXX_COMMON_FLAGS} /p:VcpkgEnableManifest=false")
endif()

 

Reporter: Ian Cook / @ianmcook

Related issues:

Note: This issue was originally created as ARROW-12886. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions