5. CMake optionsΒΆ

eProsima DDS Router provides numerous CMake options for changing the behavior and configuration of DDS Router. These options allow the developer to enable/disable certain DDS Router settings by defining these options to ON/OFF at the CMake execution, or set the required path to certain dependencies.

Warning

These options are only for developers who installed eProsima DDS Router following the compilation steps described in Linux installation from sources or Windows installation from sources.

Option

Description

Possible values

Default

CMAKE_BUILD_TYPE

CMake optimization build type.

Release
Debug
MinSizeRel
RelWithDebInfo

Release

BUILD_ALL

Build every DDS Router component.
Setting to ON sets BUILD_DOCS to ON.
It is set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_LIBRARY

Build the DDS Router library.

OFF
ON

ON

BUILD_TOOL

Build the DDS Router application tool ddsrouter.

OFF
ON

ON

BUILD_DOCS

Build the DDS Router documentation.
It is set to ON if BUILD_ALL or
BUILD_DOCS_TESTS is set to ON.

OFF
ON

OFF

BUILD_TESTS

Build the DDS Router application and documentation
tests. Setting BUILD_TESTS to ON sets
BUILD_ALL, BUILD_LIBRARY_TESTS,
BUILD_TOOL_TESTS, and BUILD_DOCS_TESTS
to ON.

OFF
ON

OFF

BUILD_LIBRARY_TESTS

Build the DDS Router library tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_TOOL_TESTS

Build the DDS Router application tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_DOCS_TESTS

Build the DDS Router documentation tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_COMPOSE_TESTS

Build the DDS Router Docker compose tests.
It is not set by BUILD_TESTS.

OFF
ON

OFF

LOG_INFO

Activate DDS Router execution logs. It is
set to ON if CMAKE_BUILD_TYPE is set
to Debug.

OFF
ON

ON if Debug
OFF otherwise

ASAN_BUILD

Activate address sanitizer build.
It cannot be combined with TSAN_BUILD.

OFF
ON

OFF

TSAN_BUILD

Activate thread sanitizer build.
It cannot be combined with ASAN_BUILD.

OFF
ON

OFF

CODE_COVERAGE

Activate code coverage build.

OFF
ON

OFF