|
|
|
@@ -869,12 +869,12 @@ macro (cotire_find_closest_relative_path _headerFile _includeDirs _relPathVar) |
|
|
|
endforeach() |
|
|
|
endmacro() |
|
|
|
|
|
|
|
macro (cotire_check_header_file_location _headerFile _insideIncudeDirs _outsideIncudeDirs _headerIsInside) |
|
|
|
macro (cotire_check_header_file_location _headerFile _insideIncludeDirs _outsideIncludeDirs _headerIsInside) |
|
|
|
# check header path against ignored and honored include directories |
|
|
|
cotire_find_closest_relative_path("${_headerFile}" "${_insideIncudeDirs}" _insideRelPath) |
|
|
|
cotire_find_closest_relative_path("${_headerFile}" "${_insideIncludeDirs}" _insideRelPath) |
|
|
|
if (_insideRelPath) |
|
|
|
# header is inside, but could be become outside if there is a shorter outside match |
|
|
|
cotire_find_closest_relative_path("${_headerFile}" "${_outsideIncudeDirs}" _outsideRelPath) |
|
|
|
cotire_find_closest_relative_path("${_headerFile}" "${_outsideIncludeDirs}" _outsideRelPath) |
|
|
|
if (_outsideRelPath) |
|
|
|
string (LENGTH "${_insideRelPath}" _insideRelPathLen) |
|
|
|
string (LENGTH "${_outsideRelPath}" _outsideRelPathLen) |
|
|
|
@@ -949,7 +949,7 @@ macro (cotire_parse_line _line _headerFileVar _headerDepthVar) |
|
|
|
endif() |
|
|
|
endmacro() |
|
|
|
|
|
|
|
function (cotire_parse_includes _language _scanOutput _ignoredIncudeDirs _honoredIncudeDirs _ignoredExtensions _selectedIncludesVar _unparsedLinesVar) |
|
|
|
function (cotire_parse_includes _language _scanOutput _ignoredIncludeDirs _honoredIncludeDirs _ignoredExtensions _selectedIncludesVar _unparsedLinesVar) |
|
|
|
if (WIN32) |
|
|
|
# prevent CMake macro invocation errors due to backslash characters in Windows paths |
|
|
|
string (REPLACE "\\" "/" _scanOutput "${_scanOutput}") |
|
|
|
@@ -969,11 +969,11 @@ function (cotire_parse_includes _language _scanOutput _ignoredIncudeDirs _honore |
|
|
|
if (_ignoredExtensions) |
|
|
|
message (STATUS "Ignored extensions: ${_ignoredExtensions}") |
|
|
|
endif() |
|
|
|
if (_ignoredIncudeDirs) |
|
|
|
message (STATUS "Ignored paths: ${_ignoredIncudeDirs}") |
|
|
|
if (_ignoredIncludeDirs) |
|
|
|
message (STATUS "Ignored paths: ${_ignoredIncludeDirs}") |
|
|
|
endif() |
|
|
|
if (_honoredIncudeDirs) |
|
|
|
message (STATUS "Included paths: ${_honoredIncudeDirs}") |
|
|
|
if (_honoredIncludeDirs) |
|
|
|
message (STATUS "Included paths: ${_honoredIncludeDirs}") |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
set (_sourceFiles ${ARGN}) |
|
|
|
@@ -985,7 +985,7 @@ function (cotire_parse_includes _language _scanOutput _ignoredIncudeDirs _honore |
|
|
|
if (_line) |
|
|
|
cotire_parse_line("${_line}" _headerFile _headerDepth) |
|
|
|
if (_headerFile) |
|
|
|
cotire_check_header_file_location("${_headerFile}" "${_ignoredIncudeDirs}" "${_honoredIncudeDirs}" _headerIsInside) |
|
|
|
cotire_check_header_file_location("${_headerFile}" "${_ignoredIncludeDirs}" "${_honoredIncludeDirs}" _headerIsInside) |
|
|
|
if (COTIRE_DEBUG) |
|
|
|
message (STATUS "${_headerDepth}: ${_headerFile} ${_headerIsInside}") |
|
|
|
endif() |
|
|
|
|