Skip to content

Commit

Permalink
Add flag for using sytem Fast-CDR (#256)
Browse files Browse the repository at this point in the history
* Add flag for using sytem Fast-CDR

* Update colcon.pkg
  • Loading branch information
pablogs9 authored Jun 30, 2021
1 parent 30d0e57 commit bf6dc25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ option(UAGENT_USE_INTERNAL_GTEST "Enable internal GTest libraries." OFF)
option(BUILD_SHARED_LIBS "Control shared/static building." ON)

option(UAGENT_USE_SYSTEM_FASTDDS "Force find and use system installed Fast-DDS." OFF)
option(UAGENT_USE_SYSTEM_FASTCDR "Force find and use system installed Fast-CDR." OFF)
option(UAGENT_FAST_PROFILE "Build FastMiddleware profile." ON)
option(UAGENT_CED_PROFILE "Build CedMiddleware profile." ON)
option(UAGENT_DISCOVERY_PROFILE "Build Discovery profile." ON)
Expand Down Expand Up @@ -70,7 +71,7 @@ option(UAGENT_TWEAK_XRCE_WRITE_LIMIT "This feature uses a tweak to allow XRCE WR
###############################################################################
set(_deps "")

if(UAGENT_USE_SYSTEM_FASTDDS)
if(UAGENT_USE_SYSTEM_FASTCDR)
set(_fastcdr_version 1)
else()
set(_fastcdr_version 1.0.13)
Expand Down
2 changes: 1 addition & 1 deletion cmake/SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ if(UAGENT_P2P_PROFILE)
endif()

# Fast CDR.
if(NOT UAGENT_USE_SYSTEM_FASTDDS)
if(NOT UAGENT_USE_SYSTEM_FASTCDR)
unset(fastcdr_DIR CACHE)
find_package(fastcdr ${_fastcdr_version} EXACT QUIET)
if(NOT fastcdr_FOUND)
Expand Down
3 changes: 2 additions & 1 deletion colcon.pkg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
],
"cmake-args":[
"-DUAGENT_ISOLATED_INSTALL=OFF",
"-DUAGENT_USE_SYSTEM_FASTCDR=ON",
"-DUAGENT_USE_SYSTEM_FASTDDS=ON"
]
}
}

0 comments on commit bf6dc25

Please sign in to comment.