Skip to content

cmake: Fix multi-config generator builds - #12818

Open
jpr42 wants to merge 1 commit into
KhronosGroup:mainfrom
jpr42:dev-cmake-7891-fix-multi-config
Open

cmake: Fix multi-config generator builds#12818
jpr42 wants to merge 1 commit into
KhronosGroup:mainfrom
jpr42:dev-cmake-7891-fix-multi-config

Conversation

@jpr42

@jpr42 jpr42 commented Aug 5, 2026

Copy link
Copy Markdown

update_deps.py only ever built a single CMake config, so switching Debug/Release/RelWithDebInfo in an IDE (Visual Studio, Xcode, Ninja Multi-Config) without reconfiguring failed, since only one config's dependency binaries ever existed.

Prebuild Debug and Release for multi-config generators, mapping RelWithDebInfo/MinSizeRel onto the Release binaries. See the comments in scripts/CMakeLists.txt and scripts/update_deps.py for how the shared install prefix and config mapping work.

Fixes #7891

update_deps.py only ever built a single CMake config, so switching
Debug/Release/RelWithDebInfo in an IDE (Visual Studio, Xcode, Ninja
Multi-Config) without reconfiguring failed, since only one config's
dependency binaries ever existed.

Prebuild Debug and Release for multi-config generators, mapping
RelWithDebInfo/MinSizeRel onto the Release binaries. See the comments in
scripts/CMakeLists.txt and scripts/update_deps.py for how the shared
install prefix and config mapping work.

Fixes KhronosGroup#7891
@jpr42
jpr42 requested a review from a team as a code owner August 5, 2026 22:53
@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 67566.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24062 running.

@charles-lunarg charles-lunarg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good - comments where I would want them, nothing surprising where they aren't.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24062 failed.

@jpr42

jpr42 commented Aug 6, 2026

Copy link
Copy Markdown
Author

Looks like internal CI is failing but I can't tell why.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 67708.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24063 running.

@jpr42
jpr42 force-pushed the dev-cmake-7891-fix-multi-config branch from d392f23 to 55791de Compare August 6, 2026 01:07
@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build queued with queue ID 67721.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24064 running.

@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24064 failed.

@jpr42
jpr42 force-pushed the dev-cmake-7891-fix-multi-config branch from 55791de to af92f76 Compare August 6, 2026 03:31
@ci-tester-lunarg

Copy link
Copy Markdown
Collaborator

CI Vulkan-ValidationLayers build # 24062 failed.

@jpr42

jpr42 commented Aug 6, 2026

Copy link
Copy Markdown
Author

I understand why Jenkins CI is failing.

Drop the separate update_deps.py + cmake -C external\helper.cmake step from the Windows Jenkins pipeline, and just run cmake -S. -B build ... directly (same as GitHub Actions does) — the in-tree UPDATE_DEPS=ON flow already builds and wires up all dependencies on its own.

I don't have access to the Jenkins CI. So I can't make this change for yall.

@jpr42
jpr42 requested a review from charles-lunarg August 6, 2026 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows build not working

3 participants