diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-07-30 18:43:26 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-07-30 18:43:26 +0300 |
commit | 27d50d6f67abd4ad2941b72d9dc15e8ba7b08050 (patch) | |
tree | dbf1313b934005c16dfdba20d592e98bf46d9471 /source/blender/depsgraph | |
parent | 168653ed1de824f12f1ecc4780288e7b9f421717 (diff) |
Enable header auto-complete suggestions in Xcode
Description of `USER_HEADER_SEARCH_PATHS` build setting:
"
This is a list of paths to folders to be searched by the compiler
for included or imported user header files (those headers listed
in quotes) when compiling C, Objective-C, C++, or Objective-C++.
Paths are delimited by whitespace, so any paths with spaces in
them need to be properly quoted. See Always Search User Paths
(Deprecated) (ALWAYS_SEARCH_USER_PATHS) for more details
on how this setting is used. If the compiler doesn't support the
concept of user headers, then the search paths are prepended to
the any existing header search paths defined in Header Search
Paths (HEADER_SEARCH_PATHS).
"
http://help.apple.com/xcode/mac/current/#/itcaec37c2a6
Xcode doesn't use `HEADER_SEARCH_PATHS` for auto-complete. Only the
header files in the same directory as the current file are suggested.
CMake as of now correctly sets `SYSTEM_HEADER_SEARCH_PATHS` and lumps the
rest in `HEADER_SEARCH_PATHS`. The standard way is to use
`USER_HEADER_SEARCH_PATHS` & `SYSTEM_HEADER_SEARCH_PATHS` and let
`HEADER_SEARCH_PATHS` be used as a fallback for compilers which do not
distinguish between `<*.h>` and `"*.h"` syntax.
So set `USER_HEADER_SEARCH_PATHS` to the include paths specified
in the `CMakeLists.txt` files of all targets.
Diffstat (limited to 'source/blender/depsgraph')
0 files changed, 0 insertions, 0 deletions