-
Notifications
You must be signed in to change notification settings - Fork 177
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
cleanup core folder structure #1269
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can specify includes in two separate ways. With ""
which by convention means relative to the current file, or with <>
which means relative to a specified include directory passed with -I
or in cmake target_include_directories
.
For portability, I'd prefer to use the <>
option, and always specify relative to the include directories which we provide, which in CMake are the include
directory, thus #include<ecal/ecal.h>
, or relative to the source directory for private headers. #include <config/ecal_config_reader.h>
.
I'd prefer not to have `#include "../header.h", as those can break more easily.
ecal/core/CMakeLists.txt
Outdated
@@ -1,4 +1,4 @@ | |||
# ========================= eCAL LICENSE ================================= | |||
# ========================= eCAL LICENSE ================================= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does the space come from? :D
@@ -34,7 +34,7 @@ | |||
#endif | |||
|
|||
#include "ecal_def.h" | |||
#include "ecal_writer.h" | |||
#include "../ecal_writer.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please no relative paths in our includes. rather "readwwrite/shm/ecal_writer.h" (so every include relative to the src
(or include
directory)
Description
All eCAL core subfolder reorganized.
Cherry-pick to