googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Make SYSTEM argument optional in target_include_directories

Open KOMMYHAP opened this issue 8 months ago • 2 comments

Hello! I'd like to use cmake FetchContent to download googletest sources and clang-cl to compile it. But in this case gtest include directory was not added to gtest target. Seems like SYSTEM argument in target_include_directories does not pollute target properties correctly. I wrap SYSTEM argument in cmake option gtest_enable_system_include to save backward compatibility.

KOMMYHAP avatar Jun 02 '24 18:06 KOMMYHAP