Skip to content

CMake update for v4.1 change#631

Merged
walbourn merged 1 commit intomainfrom
cmakeupdates
Apr 27, 2026
Merged

CMake update for v4.1 change#631
walbourn merged 1 commit intomainfrom
cmakeupdates

Conversation

@walbourn
Copy link
Copy Markdown
Member

@walbourn walbourn commented Apr 24, 2026

In CMake 4.1, the VS Generator no longer adds /Zc:forScope /Zc:inline /Zc:wchar_t to compiler and /DYNAMICBASE /NXCOMPAT /SAFESEH to linker by default unless set in the CMake.

This adds them back to the project to ensure they are set in VS Generator scenarios. /Zc:forScope /Zc:wchar_t were already the compiler default, and the project already set the other ones so it shouldn't result in any real compilation change for existing CMake projects or the Ninja generator.

@walbourn walbourn changed the title CMake update for v4.2 change CMake update for v4.1 change Apr 24, 2026
@walbourn walbourn self-assigned this Apr 24, 2026
@walbourn walbourn added the cmake Related to CMake build label Apr 24, 2026
@walbourn walbourn merged commit deb0dcb into main Apr 27, 2026
130 checks passed
@walbourn walbourn deleted the cmakeupdates branch April 27, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmake Related to CMake build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants