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

Cannot build with threads in emscripten #25

Open
rileylev opened this issue Jun 14, 2019 · 1 comment
Open

Cannot build with threads in emscripten #25

rileylev opened this issue Jun 14, 2019 · 1 comment

Comments

@rileylev
Copy link

I cannot use find_package on emscripten because threads are not yet supported in the browser by default. There is a SDL2 port for emscripten without threads, though. I think adding && NOT EMSCRIPTEN where you check if apple is being used will fix the problem.

@rileylev
Copy link
Author

It seems like emscripten requires a very different approach to linking SDL2, so fixing threads is not enough. Maybe stub cmake files that set the build and link flags to contain "-s USE_SDL=2" is needed.

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

No branches or pull requests

1 participant