Skip to content

Use 'C'-language variables for checking compiler compatibility in Midl.cmake#42

Merged
MarkSchofield merged 1 commit intomainfrom
mschofie/cxx-midl
Nov 26, 2025
Merged

Use 'C'-language variables for checking compiler compatibility in Midl.cmake#42
MarkSchofield merged 1 commit intomainfrom
mschofie/cxx-midl

Conversation

@MarkSchofield
Copy link
Owner

This change updates the check that enforces an MSVC compiler or MSVC compiler front-end - the code was checking the CMAKE_CXX_COMPILER_ID or CMAKE_CXX_COMPILER_FRONTEND_VARIANT (i.e. CXX), but consumed the, say, CMAKE_C_COMPILER. Since midl.exe uses the C compiler, the '' variables should be C-based, and not CXX-based. Given that the CMAKE_C_COMPILER-value was being used, the C language must've be enabled; this change would remove the necessity to enable the CXX language.

@MarkSchofield MarkSchofield merged commit 269ff98 into main Nov 26, 2025
12 checks passed
@MarkSchofield MarkSchofield deleted the mschofie/cxx-midl branch November 26, 2025 07:38
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.

1 participant