-
Notifications
You must be signed in to change notification settings - Fork 4
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
SDL_MAIN_HANDLED vs CMake target property #138
Comments
If |
The game starts successfully if I use |
Per https://stackoverflow.com/a/11976179/10404307:
As Captain Obvious said in the comment section, this is a massive pain in the patooty. I'd like to check why SDL fails to initialize before closing this as invalid (no action needed). Probably unrelated, but |
We need to define a
SDL_MAIN_HANDLED
on executable targets in order to make them work on Windows: 9e36c06. I just found today this answer in the CMake FAQ that could render useful here: theWIN32_EXECUTABLE
property target which can be set throughadd_executable(<name> WIN32 ...)
(docs).The text was updated successfully, but these errors were encountered: