diff options
| author | Alex Langford <apl@fb.com> | 2020-01-13 14:53:05 -0800 |
|---|---|---|
| committer | Alex Langford <apl@fb.com> | 2020-01-13 14:54:57 -0800 |
| commit | 6d57511e0b6f95a369efe7274923a36de3489e7b (patch) | |
| tree | 6d03eabdeca813a21f5367f2c96b8f6b1569f96f /lldb | |
| parent | 7b9f8e17d15d7516b186c0a85de71133b780f939 (diff) | |
| download | bcm5719-llvm-6d57511e0b6f95a369efe7274923a36de3489e7b.tar.gz bcm5719-llvm-6d57511e0b6f95a369efe7274923a36de3489e7b.zip | |
[lldb-server] Prefer target_include_directories
In the documentation of `include_directories`, it notes that
`target_include_directories` is preferred because it affects
specific targets intead of propagating include search paths
to the entire project.
Diffstat (limited to 'lldb')
| -rw-r--r-- | lldb/tools/lldb-server/CMakeLists.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/tools/lldb-server/CMakeLists.txt b/lldb/tools/lldb-server/CMakeLists.txt index 7754e9d05cb..7443c6c90e8 100644 --- a/lldb/tools/lldb-server/CMakeLists.txt +++ b/lldb/tools/lldb-server/CMakeLists.txt @@ -1,5 +1,3 @@ -include_directories(../../source) - set(LLDB_PLUGINS) if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android") @@ -52,4 +50,5 @@ add_lldb_tool(lldb-server Support ) +target_include_directories(lldb-server PRIVATE "${LLDB_SOURCE_DIR}/source") target_link_libraries(lldb-server PRIVATE ${LLDB_SYSTEM_LIBS}) |

