-
-
Notifications
You must be signed in to change notification settings - Fork 111
rename src/ to physfs/ #71
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
Comments
When you drop physfs in your project, you ideally only need to do the following and don't need to worry about include paths: add_subdirectory(third_party/physfs)
target_link_libraries(mygame PRIVATE PhysFS::PhysFS) Thanks to these lines: Line 186 in 741c4be
Line 206 in 741c4be
|
I'm not using cmake, thanks for the tip anyway. This issue is just a suggestion, because I much prefer prefixed includes like <physfs/physfs.h>. If you're dropping physfs onto your project, you can just rename src/ to physfs/, or just symlink src to physfs/ if you don't want to mess with the git tree |
Your issue/nuisance is valid though. For SDL3, the headers were moved to
|
See #76 |
Let's do this, but for PhysicsFS 4. Changing it now would be a surprising change to most people using the code that probably breaks their builds. In the meantime, a hack would be to make a physfs.h file in whatever directory makes sense for your project, that simply contains And maybe an extra comment cursing my name for being difficult. :) |
I've removed the header move in #41. In the SDL2 branch, headers are stored in a |
Uh oh!
There was an error while loading. Please reload this page.
just a minor inconvenience, but when opting to just drop physfs into our project (as advised in CMakeLists.txt), it's inconvenient to just add
-Ipath/to/physfs/
, because we would then we would have to include#include <src/physfs.h>
. If we use-Ipath/to/physfs/src/
we would then include#include <physfs.h>
.Because I prefer prefixed headers, I would like to include like this
<physfs/physfs.h>
, but there's no way without renaming or symlinking or creating a new file.We also don't have an include/, so one less reason for the src/ folder.
The text was updated successfully, but these errors were encountered: