Skip to content

Commit

Permalink
will compile?
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 19, 2025
1 parent 86df02e commit 7406875
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 7 additions & 4 deletions 3rdparty/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

##### fastCDR ######

find_package(fastcdr QUIET)
if (NOT fastcdr_FOUND)
CPMAddPackage("gh:eProsima/[email protected]")
if(NOT TARGET fastcdr)
CPMAddPackage(
NAME fastcdr_imported
GITHUB_REPOSITORY eProsima/Fast-CDR
GIT_TAG v2.2.6
OPTIONS "BUILD_SHARED_LIBS OFF"
)
endif()

##### backward_cpp ######
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ add_library(rosx_introspection STATIC
src/deserializer.cpp
)

target_link_libraries(rosx_introspection
fastcdr )
target_link_libraries(rosx_introspection PRIVATE fastcdr )

target_include_directories(rosx_introspection PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down

0 comments on commit 7406875

Please sign in to comment.