fix: link runtime lib with dfruntime

there is no symbol referenced in the runtime lib that is in dfruntime,
but it is needed during execution when code gets generated using
dfruntime functions
This commit is contained in:
youben11
2022-03-11 10:23:15 +01:00
committed by Ayoub Benaissa
parent 5b37ec640c
commit e43e7d9c17
2 changed files with 12 additions and 3 deletions

View File

@@ -10,10 +10,20 @@ if(CONCRETELANG_PARALLEL_EXECUTION_ENABLED)
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>)
target_link_libraries(ConcretelangRuntime
Concrete
pthread
m
dl
$<TARGET_OBJECTS:mlir_c_runner_utils>
-Wl,--no-as-needed
DFRuntime
omp
)
else()
target_link_libraries(ConcretelangRuntime Concrete pthread m dl $<TARGET_OBJECTS:mlir_c_runner_utils>)
endif()
install(TARGETS ConcretelangRuntime EXPORT ConcretelangRuntime)
install(TARGETS ConcretelangRuntime omp EXPORT ConcretelangRuntime)
install(EXPORT ConcretelangRuntime DESTINATION "./")

View File

@@ -17,7 +17,6 @@ target_link_libraries(
support_unit_test
gtest_main
ConcretelangClientLib
ConcretelangSupport
)
include(GoogleTest)