Skip to content
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

Re-enable mfc sample #23963

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LegalizeAdulthood
Copy link

I was able to build and run the sample without issues.

@vadz
Copy link
Contributor

vadz commented Oct 14, 2023

I think the problem here is that it only builds with MSVS and only when MFC is available (which is not always the case any more). So we'd need to test that MSVS is being used (probably simple) and ideally also that MFC is available (e.g. by checking for one of its headers?), otherwise this will break the build for all MinGW users.

@Kumazuma
Copy link
Contributor

it is possible with MSVC CMake Variable to check compiler is Visual Studio. MFC base header file is afxwin.h

@vadz vadz added work needed Too useful to close, but can't be applied in current state MSW build Any build issue (with or without CMake) labels Oct 21, 2023
@LegalizeAdulthood
Copy link
Author

Checking MSVC is probably the right thing to do, I'll look at a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Any build issue (with or without CMake) MSW work needed Too useful to close, but can't be applied in current state
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants