build: Properly escape paths which may contain spaces

This commit is contained in:
Henrik S. Gaßmann
2023-05-29 15:40:06 +02:00
committed by Arthur Sonzogni
parent 3e5322944d
commit 8bea9261bc
4 changed files with 15 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
find_program(iwyu_path NAMES include-what-you-use iwyu)
if(iwyu_path)
set_property(TARGET ${lib}
PROPERTY ${iwyu_path} -Xiwyu
--mapping_file ${CMAKE_CURRENT_SOURCE_DIR}/iwyu.imp
PROPERTY "${iwyu_path}" -Xiwyu
--mapping_file "${CMAKE_CURRENT_SOURCE_DIR}/iwyu.imp"
)
endif()