hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.45k stars 2.19k forks source link

CMake hygiene #9013

Open Orphis opened 8 years ago

Orphis commented 8 years ago

I reviewed most CMake files and I concluded that they have a very poor "hygiene" and don't follow current recommendations, standard or use modern commands.

I propose to update the current projects in order to modernize it. Some recommendations can be read in this blog post: https://rix0r.nl/blog/2015/08/13/cmake-guide/

Dependencies will be more explicit, quality will go up! I know some of those rules go against the Google C++ guidelines (the #include should match the path from the root of the library), but to be honest, it doesn't work in the real world that doesn't use Blaze that checks the header includes.

Thoughts?

Orphis commented 8 years ago

Alright, as for the hermeticity, we could go slowly and start it with the various ext/ libraries first. I understand that core, gpu and hle are too messy right now for that, we (me) could do that later.

hrydgard commented 2 years ago

Yeah, the CMake is still a mess. It works though, so not critical, as evidenced by this issue being open for 6 years.