mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
define CONCRETELANG_PARALLEL_EXECUTION_ENABLED at toplevel and prevent RuntimeContext copy constructors from passing engines map.
20 lines
724 B
CMake
20 lines
724 B
CMake
add_library(ConcretelangRuntime SHARED
|
|
context.cpp
|
|
wrappers.cpp
|
|
)
|
|
|
|
if(CONCRETELANG_PARALLEL_EXECUTION_ENABLED)
|
|
add_library(DFRuntime SHARED DFRuntime.cpp)
|
|
target_link_libraries(DFRuntime PUBLIC pthread m dl HPX::hpx HPX::iostreams_component -rdynamic -Wl,-wrap,main)
|
|
|
|
install(TARGETS DFRuntime EXPORT DFRuntime)
|
|
install(EXPORT DFRuntime DESTINATION "./")
|
|
|
|
target_link_libraries(ConcretelangRuntime Concrete pthread m dl HPX::hpx $<TARGET_OBJECTS:mlir_c_runner_utils>)
|
|
else()
|
|
target_link_libraries(ConcretelangRuntime Concrete pthread m dl $<TARGET_OBJECTS:mlir_c_runner_utils>)
|
|
endif()
|
|
|
|
install(TARGETS ConcretelangRuntime EXPORT ConcretelangRuntime)
|
|
install(EXPORT ConcretelangRuntime DESTINATION "./")
|