premake / premake/premake-core

How can I disable a specific visual studio setting in premake?

Open
#2,139 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
C
Stars
3.6k
Forks
654
Avg merge
1d 1h
Merged PRs (30d)
13

Description

What's your question?

I am trying to disable vcpkg and came across this issue but that did not solve my problem. In VS2022, vcpkg is a native feature that cannot be disabled (I tried to disable it from global editor setttings but Vcpkg was still enabled in my projects). Is there a way to pass a "custom" property in premake to modify a setting of visual studio, similar to xcodebuildsettings?

Anything else we should know?

I manually disabled Vcpkg from UI and this is what is stored in project file:

<PropertyGroup Label="Vcpkg">
  <VcpkgEnabled>false</VcpkgEnabled>
  <VcpkgManifestInstall>false</VcpkgManifestInstall>
  <VcpkgAutoLink>false</VcpkgAutoLink>
</PropertyGroup>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with issue #1579 and the Visual Studio XML shown here, then inspect how Premake handles custom Visual Studio settings. Done means determining whether the three Vcpkg properties can be represented and documenting or implementing the supported approach.

Written by the indexing model from the issue text.

Assessment

Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.