From aaecac913e229f9f483209fea35779e6748b7edf Mon Sep 17 00:00:00 2001 From: Matt Woodward Date: Fri, 28 Feb 2020 10:39:56 +1100 Subject: [PATCH] Fix cross compiling system includes --- GenericFindDependency.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GenericFindDependency.cmake b/GenericFindDependency.cmake index 4b8c1e8..79869c8 100644 --- a/GenericFindDependency.cmake +++ b/GenericFindDependency.cmake @@ -347,9 +347,7 @@ function(GenericFindDependency) # Final validation that the target was properly created from some source if(TARGET ${x_TARGET}) if(x_SYSTEM_INCLUDES) - if(NOT CMAKE_CROSSCOMPILING OR THIRD_PARTY_INCLUDES_AS_SYSTEM) - mark_target_as_system_includes(${x_TARGET}) - endif() + mark_target_as_system_includes(${x_TARGET}) endif() else() # Target not found in any location