From 35be6bb25945346031f15f1d6e44e347e9318070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?furby=E2=84=A2?= Date: Mon, 18 Dec 2023 02:04:09 -0600 Subject: [PATCH] [Xcode support] Compile source for header only libs. * If we do not do this, Xcode freaks out because it is hardcoded to expect object files exist from all libraries. --- Package.swift | 5 ++++- Sources/Eigen/Eigen.cpp | 1 + Sources/PyBind11/pybind11.cpp | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Sources/Eigen/Eigen.cpp create mode 100644 Sources/PyBind11/pybind11.cpp diff --git a/Package.swift b/Package.swift index 501174ac..d8968d2f 100644 --- a/Package.swift +++ b/Package.swift @@ -422,7 +422,7 @@ let package = Package( .target(name: "Boost"), .target(name: "HDF5"), .target(name: "OpenEXR"), - .product(name: "Python", package: "MetaversePythonFramework"), + .product(name: "Python", package: "MetaversePythonFramework") ], publicHeadersPath: "include", cxxSettings: [ @@ -432,6 +432,9 @@ let package = Package( .target( name: "PyBind11", + dependencies: [ + .product(name: "Python", package: "MetaversePythonFramework") + ], publicHeadersPath: "include", cxxSettings: [] ), diff --git a/Sources/Eigen/Eigen.cpp b/Sources/Eigen/Eigen.cpp new file mode 100644 index 00000000..029437b9 --- /dev/null +++ b/Sources/Eigen/Eigen.cpp @@ -0,0 +1 @@ +#include diff --git a/Sources/PyBind11/pybind11.cpp b/Sources/PyBind11/pybind11.cpp new file mode 100644 index 00000000..05f37bc9 --- /dev/null +++ b/Sources/PyBind11/pybind11.cpp @@ -0,0 +1 @@ +#include "pybind11/pybind11.h"