File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ target_include_directories(complex_module_sources
106106)
107107target_link_libraries (complex_module_sources
108108 viam-cpp-sdk::viamsdk
109+ viam-cpp-sdk::viamapi
109110)
110111
111112add_executable (complex_module)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ add_library(viam-cpp-sdk::viamsdk ALIAS viamsdk)
1515# `BASE_DIRS` below, because otherwise we will pull in the static
1616# versions of the proto files even if we are generating dynamically.
1717target_include_directories (viamsdk
18- PUBLIC
18+ PRIVATE
1919 "$<BUILD_INTERFACE:$<TARGET_PROPERTY:viam-cpp-sdk::viamapi,INTERFACE_INCLUDE_DIRECTORIES>>"
2020)
2121
@@ -234,9 +234,9 @@ target_link_directories(viamsdk
234234)
235235
236236if (BUILD_SHARED_LIBS )
237- target_link_libraries (viamsdk PUBLIC viam-cpp-sdk::viamapi)
237+ target_link_libraries (viamsdk PRIVATE viam-cpp-sdk::viamapi)
238238else ()
239- target_link_libraries (viamsdk PUBLIC "$<LINK_LIBRARY:WHOLE_ARCHIVE,viam-cpp-sdk::viamapi>" )
239+ target_link_libraries (viamsdk PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,viam-cpp-sdk::viamapi>" )
240240endif ()
241241
242242target_link_libraries (viamsdk
Original file line number Diff line number Diff line change @@ -39,8 +39,14 @@ target_sources(viamsdk_test
3939 test_utils.cpp
4040)
4141
42+ target_include_directories (viamsdk_test
43+ PUBLIC
44+ "$<BUILD_INTERFACE:$<TARGET_PROPERTY:viam-cpp-sdk::viamapi,INTERFACE_INCLUDE_DIRECTORIES>>"
45+ )
46+
4247target_link_libraries (viamsdk_test
4348 PUBLIC viam-cpp-sdk::viamsdk
49+ PUBLIC viam-cpp-sdk::viamapi
4450)
4551
4652viamcppsdk_add_boost_test(test_arm.cpp)
You can’t perform that action at this time.
0 commit comments