diff --git a/CMake/Macros.cmake b/CMake/Macros.cmake index 7e48271d02..18a601fd75 100644 --- a/CMake/Macros.cmake +++ b/CMake/Macros.cmake @@ -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}")