diff options
| author | Mohammed <[email protected]> | 2023-07-13 08:11:33 -0500 |
|---|---|---|
| committer | Mohammed <[email protected]> | 2023-07-13 08:11:33 -0500 |
| commit | 60d6fe79e1c4d2def8e1561c142e427bd425e056 (patch) | |
| tree | 9f10a9d8a123cd90b516a09eacaf597e661c6443 /tests/projects/objc++/precompiled_header | |
| parent | 7939d750e9dcd51b5bac3e4f4a7ead5a81b2bed0 (diff) | |
CMake only accepts the INTERFACE access type for including directories in header-only libraries
CMake only allows the use of the INTERFACE access type to include directories in header-only libraries.
However, Xmake generates a faulty CMakeLists.txt file when a header-only library has dependencies. This results in the following error message: "target_include_directories may only set INTERFACE properties on INTERFACE targets".
The root cause of this issue is that the include directory function is using a PRIVATE access type instead of INTERFACE. To address this problem, the proposed change checks whether the target is a header-only library and adjusts the access type accordingly.
Diffstat (limited to 'tests/projects/objc++/precompiled_header')
0 files changed, 0 insertions, 0 deletions
