We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a4e872 commit 089d18eCopy full SHA for 089d18e
GenericFindDependency.cmake
@@ -347,7 +347,9 @@ function(GenericFindDependency)
347
# Final validation that the target was properly created from some source
348
if(TARGET ${x_TARGET})
349
if(x_SYSTEM_INCLUDES)
350
- mark_target_as_system_includes(${x_TARGET})
+ if(NOT CMAKE_CROSSCOMPILING OR THIRD_PARTY_INCLUDES_AS_SYSTEM)
351
+ mark_target_as_system_includes(${x_TARGET})
352
+ endif()
353
endif()
354
else()
355
# Target not found in any location
0 commit comments