Skip to content

Commit

Permalink
Better dep on msgpack-c
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad0 committed Oct 17, 2023
1 parent a6d09e9 commit cbeed2b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions circuits/cpp/cmake/module.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ function(circuits_cmake_module MODULE_NAME)
env
${TBB_IMPORTED_TARGETS}
)
# enable msgpack downloading via dependency (solves race condition)
add_dependencies(${MODULE_NAME}_test_objects msgpack-c)
add_dependencies(${MODULE_NAME}_tests msgpack-c)

if(NOT WASM AND NOT CI)
# If collecting coverage data, set profile
Expand Down Expand Up @@ -180,6 +183,8 @@ function(circuits_cmake_module MODULE_NAME)
${MODULE_LINK_NAME}
env
)
# enable msgpack downloading via dependency (solves race condition)
add_dependencies(${MODULE_NAME}_${FUZZER_NAME_STEM}_fuzzer msgpack-c)
endforeach()
endif()

Expand Down Expand Up @@ -221,6 +226,8 @@ function(circuits_cmake_module MODULE_NAME)
COMMAND ${MODULE_NAME}_bench
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
add_dependencies(${MODULE_NAME}_bench_objects msgpack-c)
add_dependencies(${MODULE_NAME}_bench msgpack-c)
endif()

set(${MODULE_NAME}_lib_targets ${lib_targets} PARENT_SCOPE)
Expand Down

0 comments on commit cbeed2b

Please sign in to comment.