Skip to content

Commit 5ad9078

Browse files
authored
Fix cross compiling system includes (#45)
1 parent 47847e7 commit 5ad9078

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

GenericFindDependency.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,7 @@ function(GenericFindDependency)
347347
# Final validation that the target was properly created from some source
348348
if(TARGET ${x_TARGET})
349349
if(x_SYSTEM_INCLUDES)
350-
if(NOT CMAKE_CROSSCOMPILING OR THIRD_PARTY_INCLUDES_AS_SYSTEM)
351-
mark_target_as_system_includes(${x_TARGET})
352-
endif()
350+
mark_target_as_system_includes(${x_TARGET})
353351
endif()
354352
else()
355353
# Target not found in any location

0 commit comments

Comments
 (0)