build: IWYU path handling fixed

This commit is contained in:
Mateusz Pusz
2024-04-24 12:43:56 +02:00
parent 117e8bd740
commit 5c680199b8

View File

@ -86,10 +86,10 @@ macro(_process_iwyu_arguments offset log_postfix)
set(_enable_iwyu_PROGRAM include-what-you-use) set(_enable_iwyu_PROGRAM include-what-you-use)
endif() endif()
find_program(IWYU_PATH ${_enable_iwyu_PROGRAM}) find_program(_iwyu_path ${_enable_iwyu_PROGRAM})
if(IWYU_PATH) if(_iwyu_path)
if(NOT _enable_iwyu_QUIET) if(NOT _enable_iwyu_QUIET)
message(STATUS " Executable: ${IWYU_PATH}") message(STATUS " Executable: ${_iwyu_path}")
endif() endif()
else() else()
if(DEFINED _error_log_level) if(DEFINED _error_log_level)