From acfea5f9acee9207945d1fd7c8a72963e84676ee Mon Sep 17 00:00:00 2001 From: Nicholas Kamp Date: Wed, 29 May 2024 23:38:38 -0400 Subject: [PATCH] Try linking pybind11 to distributions library --- projects/distributions/CMakeLists.txt | 1 + projects/interactions/public/SIREN/interactions/CrossSection.h | 2 +- projects/interactions/public/SIREN/interactions/Decay.h | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/projects/distributions/CMakeLists.txt b/projects/distributions/CMakeLists.txt index 3339d25a..71faec66 100644 --- a/projects/distributions/CMakeLists.txt +++ b/projects/distributions/CMakeLists.txt @@ -44,6 +44,7 @@ target_include_directories(SIREN_distributions PUBLIC target_link_libraries(SIREN_distributions PRIVATE $ + pybind11::embed PUBLIC photospline SIREN_serialization diff --git a/projects/interactions/public/SIREN/interactions/CrossSection.h b/projects/interactions/public/SIREN/interactions/CrossSection.h index 910b758b..0625265e 100644 --- a/projects/interactions/public/SIREN/interactions/CrossSection.h +++ b/projects/interactions/public/SIREN/interactions/CrossSection.h @@ -61,7 +61,7 @@ class pyCrossSection : public CrossSection, public Pybind11Trampoline { public: using Decay::Decay; pyDecay(Decay && parent) : Decay(std::move(parent)) {} - pybind11::object self; + //pybind11::object self; double TotalDecayLength(dataclasses::InteractionRecord const & interaction) const override { SELF_OVERRIDE(