Hi all,

While porting to cmake I'm trying to use its features to enhance
portability, two are:

    https://cmake.org/cmake/help/v3.0/prop_tgt/FRAMEWORK.html
    https://cmake.org/cmake/help/v3.0/prop_tgt/PUBLIC_HEADER.html

These will generate MacOS compliant bundles but there is one caveat: when I
install they end all in a flat hierarchy, thus things that includes
relative to subdirectories, as Efl.h or Ector.h will fail to find the
"subdir/file.h".

One option is to avoid the PUBLIC_HEADER and manually install files to
include directories, there I can specify the subdirectories as needed.
However I'm not sure if that would be enough to MacOS and possibly other
systems, where the PUBLIC_HEADER could be hinting something else.

Another option, which I prefer, is to change the master include to remove
the subdirectories, also changing the automake rules. That would result in
all headers to be installed to a single directory:
 /usr/include/${lib}-${vmaj}/

Any objections to this change?

-- 
Gustavo Sverzut Barbieri
--------------------------------------
Mobile: +55 (16) 99354-9890
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to