Skip to content

Commit

Permalink
always use the embedded FastCDR
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Jan 26, 2024
1 parent 119c8b1 commit 600542f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ endif()
# Global flag to cause add_library() to create shared libraries if on.
# If set to true, this will cause all libraries to be built shared
# unless the library was explicitly added as a static library.
option(BUILD_SHARED_LIBS "Create shared libraries by default" ON)
option(BUILD_SHARED_LIBS "Create shared libraries by default" OFF)

###############################################################################
# Load external eProsima projects.
Expand Down
11 changes: 3 additions & 8 deletions plotjuggler_plugins/ParserROS/rosx_introspection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

find_package(fastcdr QUIET)

if(NOT fastcdr_FOUND )
# Override Fast-CDR option: compile as static lib
SET(BUILD_SHARED_LIBS OFF CACHE BOOL "Create shared libraries by default")
add_subdirectory(3rdparty/Fast-CDR)
include_directories(3rdparty/Fast-CDR/include)
endif()
# Override Fast-CDR option: compile as static lib
add_subdirectory(3rdparty/Fast-CDR)
include_directories(3rdparty/Fast-CDR/include)

###############################################
## Declare a C++ library
Expand Down

0 comments on commit 600542f

Please sign in to comment.