-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio Generator - packagePresets: Use multi-configuration builds #4096
Comments
@kuch3n We are trying to reproduce this issue based on the code you provided, we ran into the problem in the screenshot below, when I try to install it on the NSIS website, it says that I can't access this page, is it mandatory to install NSIS in order to reproduce this issue? If not can you give me some more detailed steps and suggestions? Looking forward to receive your reply! |
@v-frankwang you could use the Visual Studio Generator, too. CMakePresets.json
|
@kuch3n Thank you very much for your reply, we used the CMakePresets.json file you provided to solve the problem I ran into, but mine seems to be able to be packaged successfully, here are our results along with the details: |
Isn't it just building for Debug? If i use "Run CPack" only the active build preset is build. With "Run CPack" should run a build for each configuration, e.g. |
Brief Issue Summary
It is possible to pass multiple build configurations via a
packagePresets
. But CPack is run with the selectedbuildPresets
and additionaly with the given configurations:[proc] Executing command: C:/msys64/ucrt64/bin/cpack.exe -C Release -C "Debug;Release" -B NuGet
The package preset:
CMake Tools should run a build with "Release" and "Debug", but it only runs for "Debug". Hence packaging fails, as "Release" build is missing.
CMake Tools Diagnostics
No response
Debug Log
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: