Skip to content

Commit 089d18e

Browse files
Revert "Fix cross compiling system includes (#45)"
This reverts commit 5ad9078.
1 parent 3a4e872 commit 089d18e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GenericFindDependency.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ 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-
mark_target_as_system_includes(${x_TARGET})
350+
if(NOT CMAKE_CROSSCOMPILING OR THIRD_PARTY_INCLUDES_AS_SYSTEM)
351+
mark_target_as_system_includes(${x_TARGET})
352+
endif()
351353
endif()
352354
else()
353355
# Target not found in any location

0 commit comments

Comments
 (0)