Open Jeanmilost opened 3 months ago
This code globally works well, except for the
cppdialect "C++17"
instruction, which is completely ignored. Indeed all my projects remain configured to<LanguageStandard>stdcpplatest</LanguageStandard>
instead of<LanguageStandard>stdcpp17</LanguageStandard>
after the deployment.
For VS2022, Premake will only emit stdcpplatest
if cppdialect
is explicitly set to "C++latest"
. You can see the logic here: https://github.com/premake/premake-core/blob/fa2405d4857c13b625bce8159e0d03cbb058aa43/modules/vstudio/vs2010_vcxproj.lua#L1741-L1753
With just the snippet you've provided above, I can't provide much more assistance beyond recommending that you look at premake5-modules.lua
and skia_includes()
.
In order to deploy a Visual Studio 2022 solution, I'm using the following code:
This code globally works well, except for the
cppdialect "C++17"
instruction, which is completely ignored. Indeed all my projects remain configured to<LanguageStandard>stdcpplatest</LanguageStandard>
instead of<LanguageStandard>stdcpp17</LanguageStandard>
after the deployment.I already asked this question here: https://stackoverflow.com/questions/78766168/premake5-cppdialect-is-ignored-while-creating-project-for-vs2022, unfortunately it remained unresolved.
Can you please tell me what I need to change in my above code to make the
cppdialect
instruction to be applied during the deployment?