-
Notifications
You must be signed in to change notification settings - Fork 7
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
How about all lowercase installation directories? #14
Comments
I don't have a strong stance on one proposal or the other, since appropriate usage of CMake targets will render this cosmetic issue transparent to the user. A few things I'd like to point out:
|
That's my point. If headers are installed in a subdirectory, they should be included using such "namespaced" includes.
It's not actually transparent. You have to advocate a specific way how headers should be included and whether they have a file name prefix or not (cf. #15). Either
or
As mentioned in #15, when we install headers in an "irtk" subdirectory and switch to a "irtk" C++ namespace (which I think would be desirable), I clearly prefer the second approach because the include path should only contain the XXX/include/ directory itself and in a standard Linux installation, the |
The capitalisation of the module name does in fact not matter to CMake. This you have to handle in your package file yourself. It's easy to just convert all module names to lowercase in the package configuration file included by I vote for To help Also, it would be common practice to call all variables set by a package configuration file as |
After having had a look at many of the refactored CMake 3 Find modules, it seems CMake developers now (i.e., since version 3) made the choice to always capitalise the package name in the variable name prefix no matter how the Find module is called. So I guess that's what "modern" CMake prefers. |
On Unix, it is quite common to keep directory names all lowercase. Header files of modules are, however, installed in directories
irtk/Common
et al., i.e., mixing lowercase with CamelCase. It should be eitherIRTK/Common
orirtk/common
. For Unix, I prefer the latter. On Windows, I would actually choose the first. Given that NTFS is not case sensitive (at least not normally...), this wouldn't make a difference. But if a common case should be chosen for all platforms, I vote for all lowercase. Not saying that I am not open to use uppercase instead. But if we do use upper case letters, then let's useIRTK
instead in directory names as well as library names (i.e.,libIRTKCommon.so
).The text was updated successfully, but these errors were encountered: