googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Make SYSTEM argument optional in target_include_directories

Open KOMMYHAP opened this issue 1 year ago • 3 comments
trafficstars

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