premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

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

Open GasimGasimzada opened this issue 1 year ago • 2 comments

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>

GasimGasimzada avatar Sep 10 '23 10:09 GasimGasimzada

Late response, but you should be able to use the Call Arrays to add the functionality you want. See the docs here: https://premake.github.io/docs/Overrides-and-Call-Arrays

nickclark2016 avatar Oct 05 '23 17:10 nickclark2016

Thanks! I'll check it out!

GasimGasimzada avatar Oct 23 '23 17:10 GasimGasimzada