You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible bug with CMake and visual studio release type #1582
I pulled the build logs from the github ci, 🏁 Build (Windows, MSVC, CMake)
cmake command is 'cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 16 2019" .' but the visual studio build command has this in it: '/p:Configuration=Debug' is this a bug? I'm unfamilar with msvc
I'm submitting this so that it doesnt get lost, and can be reviewed by someone familiar with msvc
Steps to reproduce
review the ci logs
Minimal reproduction project
Release build of godot-cpp using CMake and Visual Studio
Visual Studio projects are multi-config projects like Ninja-MultiConfig which means you can't set the configuration at configure time as there are multiple, it always chooses the first one by default when not specified in the build command.
# Instead of this:
cmake -DCMAKE_BUILD_TYPE=Release -G"Visual Studio 17 2022".
cmake --build . --verbose
# It should be this
cmake -G"Visual Studio 17 2022".
cmake --build . --verbose --config Release
Activity
enetheru commentedon Sep 21, 2024
I found the answer
Visual Studio projects are multi-config projects like Ninja-MultiConfig which means you can't set the configuration at configure time as there are multiple, it always chooses the first one by default when not specified in the build command.
VSProj Configure type on build command - to resolve godotengine#1582
VSProj Configure type on build command - to resolve godotengine#1582
dsnopek commentedon Sep 26, 2024
Now that you've figured out what's going on with this, do we still need this issue? Or, is this something you think we should document somewhere?
EDIT: Oh, nevermind, it looks like you have you have PR #1600 to fix this. I'll update the description on that one so these are linked.
Merge pull request #1600 from enetheru/vsproj-ci-config
enetheru commentedon Sep 27, 2024
dsnopek commentedon Sep 27, 2024
I guess there's your build instructions in PR #1595?
enetheru commentedon Sep 28, 2024
VSProj Configure type on build command - to resolve godotengine#1582
VSProj Configure type on build command - to resolve godotengine#1582