-
When using a vcpkg manifest, I get a warning from MSBuild
So I tried adding {
"version": 4,
"configurePresets": [
{
"name": "MSBuild",
"displayName": "Visual Studio Build Tools 2022 Release - amd64",
"description": "Using compilers for Visual Studio 17 2022 (x64 architecture)",
"generator": "Visual Studio 17 2022",
"toolset": "host=x64",
"architecture": "x64",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_TOOLCHAIN_FILE": "C:/users/simen/vcpkg/scripts/buildsystems/vcpkg.cmake",
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}"
}
}
],
"buildPresets": [
{
"name": "Vcpkg",
"description": "",
"displayName": "MSBuild x64 debug with vcpkg",
"configurePreset": "MSBuild",
"nativeToolOptions": [
"/p:VcpkgEnableManifest=true"
]
}
]
} But the cmake command doesn't change, even though I specify that I want to use the correct configuration preset and build preset
|
Beta Was this translation helpful? Give feedback.
Answered by
revosw
Mar 12, 2022
Replies: 1 comment
-
Nevermind, I think because I had errors in my cmake files the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
revosw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, I think because I had errors in my cmake files the
--build
command never ran. I see now that the command I posted in my answer is not the command for MSBuild, but rather for generating the solution files for MSBuild