Swift: Exclude SDK include paths

Populate `CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES` with the macOS SDK's
include directory so that we filter such implicit directories out of
Swift targets.

Fixes: #19845
This commit is contained in:
Yauheni Khnykin
2020-02-04 20:47:30 +01:00
committed by Brad King
parent 155540d89e
commit 5c2a92f44f
7 changed files with 89 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
#include <cmath>
bool foo(double arg)
{
return std::isfinite(arg);
}