Skip to content

Commit

Permalink
add additional target link library
Browse files Browse the repository at this point in the history
  • Loading branch information
ArseniyKholod committed Aug 2, 2024
1 parent 5166428 commit 1d21fd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ add_library(openfhe_julia SHARED
${CMAKE_SOURCE_DIR}/src/encodingparamsimpl.cpp
${CMAKE_SOURCE_DIR}/src/auxiliary.cpp
)
target_link_libraries(openfhe_julia JlCxx::cxxwrap_julia)
target_link_libraries(openfhe_julia JlCxx::cxxwrap_julia JlCxx::cxxwrap_julia_stl)
target_include_directories(openfhe_julia PRIVATE ${CMAKE_SOURCE_DIR}/include)
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION
Expand Down
1 change: 0 additions & 1 deletion include/openfhe_julia/cryptocontextfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#define OPENFHE_JULIA_CRYPTOCONTEXTFACTORY_H_

#include "jlcxx/jlcxx.hpp"
#include "jlcxx/stl.hpp"

void wrap_CryptoContextFactory(jlcxx::Module& mod);

Expand Down
4 changes: 2 additions & 2 deletions src/cryptocontextfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "openfhe_julia/jlcxx_parameters.h"

void wrap_CryptoContextFactory(jlcxx::Module& mod) {
//jlcxx::stl::apply_stl<lbcrypto::CryptoContext<lbcrypto::DCRTPoly>>(mod);
jlcxx::stl::apply_stl<lbcrypto::CryptoContext<lbcrypto::DCRTPoly>>(mod);
mod.add_type<jlcxx::Parametric<jlcxx::TypeVar<1>>>("CryptoContextFactory")
.apply<lbcrypto::CryptoContextFactory<lbcrypto::DCRTPoly>>([](auto wrapped) {
typedef typename decltype(wrapped)::type WrappedT;
Expand All @@ -14,6 +14,6 @@ void wrap_CryptoContextFactory(jlcxx::Module& mod) {
wrapped.module().method("GetContextCount", &WrappedT::GetContextCount);
//wrapped.module().method("GetContext", &WrappedT::GetContext);
wrapped.module().method("GetFullContextByDeserializedContext", &WrappedT::GetFullContextByDeserializedContext);
//wrapped.module().method("GetAllContexts", &WrappedT::GetAllContexts);
wrapped.module().method("GetAllContexts", &WrappedT::GetAllContexts);
});
}

0 comments on commit 1d21fd2

Please sign in to comment.