Skip to content

Commit

Permalink
Revert "Fix cross compiling system includes (#45)" (#54)
Browse files Browse the repository at this point in the history
This reverts commit 5ad9078.
  • Loading branch information
benjaminaltieri authored May 8, 2020
1 parent 3a4e872 commit 01fcd5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GenericFindDependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ function(GenericFindDependency)
# Final validation that the target was properly created from some source
if(TARGET ${x_TARGET})
if(x_SYSTEM_INCLUDES)
mark_target_as_system_includes(${x_TARGET})
if(NOT CMAKE_CROSSCOMPILING OR THIRD_PARTY_INCLUDES_AS_SYSTEM)
mark_target_as_system_includes(${x_TARGET})
endif()
endif()
else()
# Target not found in any location
Expand Down

0 comments on commit 01fcd5a

Please sign in to comment.