Skip to content

Commit

Permalink
Make uv and nng private and static (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
blozano-tt authored Nov 23, 2024
1 parent e9dc0d1 commit 0a41bf5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 8 additions & 2 deletions cmake/dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ function(fetch_dependencies)
GITHUB_REPOSITORY nanomsg/nng
GIT_TAG v1.8.0
OPTIONS
"BUILD_SHARED_LIBS ON"
"NNG_TESTS OFF"
"NNG_TOOLS OFF"
)
Expand Down Expand Up @@ -97,7 +96,14 @@ function(fetch_dependencies)
############################################################################################################################
# libuv (for process management)
############################################################################################################################
CPMAddPackage(NAME libuv GITHUB_REPOSITORY libuv/libuv GIT_TAG v1.48.0 OPTIONS "LIBUV_BUILD_TESTS OFF")
CPMAddPackage(
NAME libuv
GITHUB_REPOSITORY libuv/libuv
GIT_TAG v1.48.0
OPTIONS
"LIBUV_BUILD_TESTS OFF"
"LIBUV_BUILD_SHARED OFF"
)

############################################################################################################################
# fmt : https://github.com/fmtlib/fmt
Expand Down
5 changes: 2 additions & 3 deletions device/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ target_include_directories(
)

# flatbuffers is public - exposed to tt_metal by tt_simulation_device_generated.h
# nng is public - exposed to tt_metal by tt_simulation_host.hpp
target_link_libraries(
device
PUBLIC
nng
flatbuffers
uv
PRIVATE
hwloc
nng
rt
uv_a
Boost::interprocess
fmt::fmt-header-only
yaml-cpp::yaml-cpp
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ target_link_libraries(
gtest
pthread
fmt::fmt-header-only
nng
)
target_include_directories(
test_common
Expand Down

0 comments on commit 0a41bf5

Please sign in to comment.