mirror of
https://github.com/curl/curl.git
synced 2026-07-29 07:53:07 +03:00
eliminate _includes_l in favor of _includes
This commit is contained in:
parent
d15f2e8f77
commit
16b928233e
1 changed files with 4 additions and 4 deletions
|
|
@ -105,11 +105,11 @@ macro(curl_collect_target_options _target)
|
|||
if(TARGET "${_lib}")
|
||||
get_target_property(_val ${_lib} INTERFACE_INCLUDE_DIRECTORIES)
|
||||
if(_val)
|
||||
list(APPEND _includes_l ${_val})
|
||||
list(APPEND _includes ${_val})
|
||||
endif()
|
||||
get_target_property(_val ${_lib} INCLUDE_DIRECTORIES)
|
||||
if(_val)
|
||||
list(APPEND _includes_l ${_val})
|
||||
list(APPEND _includes ${_val})
|
||||
endif()
|
||||
get_target_property(_val ${_lib} COMPILE_DEFINITIONS)
|
||||
if(_val)
|
||||
|
|
@ -126,7 +126,7 @@ macro(curl_add_clang_tidy_test_target _target_clang_tidy _target)
|
|||
if(CURL_CLANG_TIDY)
|
||||
|
||||
# Collect header directories and macro definitions from lib dependencies
|
||||
set(_includes_l "")
|
||||
set(_includes "")
|
||||
set(_definitions "")
|
||||
curl_collect_target_options(${_target})
|
||||
|
||||
|
|
@ -134,7 +134,7 @@ macro(curl_add_clang_tidy_test_target _target_clang_tidy _target)
|
|||
get_directory_property(_includes_d INCLUDE_DIRECTORIES)
|
||||
get_target_property(_includes_t ${_target} INCLUDE_DIRECTORIES)
|
||||
|
||||
set(_includes "${_includes_l};${_includes_d};${_includes_t}")
|
||||
set(_includes "${_includes};${_includes_d};${_includes_t}")
|
||||
list(REMOVE_ITEM _includes "")
|
||||
string(REPLACE ";" ";-I" _includes ";${_includes}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue