-
Notifications
You must be signed in to change notification settings - Fork 448
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
macOS unable to find target SDL2::SDL2 #309
Comments
Hello! Your avatar is very hypnotic. :) How are you building the example? This error happens probably because the magnum's I just realized the example documentation is quite lacking in this regard, I'm going to update it. |
Docs updated in mosra/magnum-examples@c3ba58d and new version uploaded as well. |
I made it work. Many thanks for your advices. And... Just some feedback. Looks like only FindSDL2 was missing. Its works without any other modules like i.e. FindCorrade, FindMagnumExtras. All examples are working (macOS) with such structure:
I was able to compile same program under Windows (VCPKG) without modules at all.
|
Yes, you're right. the FindCorrade and FindMagnum modules are installed so CMake is able to pick them up. The FindSDL2 module isn't because it's for a third-party library and if I would install it too, it might cause random conflicts with potentially different FindSDL2 modules of other projects. I'm still looking for a better solution for this, but the only other option I see right now is to travel back in time and add this module to upstream CMake for all versions back to 3.1. :) |
Hello. I was trying to compile “Primitives example” on macOS. Magnum was installed from brew.
And I am getting this CMake error:
brew list:
The text was updated successfully, but these errors were encountered: