compnerd added a comment.
I think that it might be better to handle this as a single global change:
if(CMAKE_FIND_ROOT_PATH)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
endif()
Repository:
rCXXA libc++abi
https://reviews.llvm.org/D41623