From 5c680199b832f42a2f7c8cc445629c5fc8554654 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 24 Apr 2024 12:43:56 +0200 Subject: [PATCH] build: IWYU path handling fixed --- cmake/include-what-you-use.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/include-what-you-use.cmake b/cmake/include-what-you-use.cmake index 53556e7a..1b5c9cc0 100644 --- a/cmake/include-what-you-use.cmake +++ b/cmake/include-what-you-use.cmake @@ -86,10 +86,10 @@ macro(_process_iwyu_arguments offset log_postfix) set(_enable_iwyu_PROGRAM include-what-you-use) endif() - find_program(IWYU_PATH ${_enable_iwyu_PROGRAM}) - if(IWYU_PATH) + find_program(_iwyu_path ${_enable_iwyu_PROGRAM}) + if(_iwyu_path) if(NOT _enable_iwyu_QUIET) - message(STATUS " Executable: ${IWYU_PATH}") + message(STATUS " Executable: ${_iwyu_path}") endif() else() if(DEFINED _error_log_level)