Skip to content

Commit

Permalink
[Xcode support] Compile source for header only libs.
Browse files Browse the repository at this point in the history
* If we do not do this, Xcode freaks out because it is
  hardcoded to expect object files exist from all libraries.
  • Loading branch information
furby-tm committed Dec 18, 2023
1 parent 187368c commit 35be6bb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -432,6 +432,9 @@ let package = Package(

.target(
name: "PyBind11",
dependencies: [
.product(name: "Python", package: "MetaversePythonFramework")
],
publicHeadersPath: "include",
cxxSettings: []
),
Expand Down
1 change: 1 addition & 0 deletions Sources/Eigen/Eigen.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <Eigen/Eigen>
1 change: 1 addition & 0 deletions Sources/PyBind11/pybind11.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include "pybind11/pybind11.h"

0 comments on commit 35be6bb

Please sign in to comment.