Merge pull request #5306 from crueter/iwyu

CMake: Also search for `include-what-you-use` if IWYU is enabled
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-02-12 19:03:36 -08:00
commit 2a574e8c92
1 file changed
+2 -1
+2 -1
View File
@@ -543,7 +543,8 @@ endif()
message(STATUS "FEX Version: ${GIT_DESCRIBE_STRING}")
message(STATUS "FEX Commit: ${GIT_SHORT_HASH}")
if (ENABLE_IWYU)
find_program(IWYU_EXE "iwyu")
find_program(IWYU_EXE
NAMES iwyu include-what-you-use)
if (IWYU_EXE)
message(STATUS "IWYU enabled")
set(CMAKE_CXX_INCLUDE_WHAT_YOU_USE "${IWYU_EXE}")