3. CMake optionsΒΆ

eProsima Discovery Server provides some CMake options for changing the behavior and configuration of Discovery Server application. These options allow the user to enable/disable certain settings by defining these options to ON/OFF at the CMake execution.

Option

Description

Possible values

Default

COMPILE_EXAMPLES

Build Discovery Server example.

Release
Debug

Release

LOG_LEVEL_INFO

Set logging level to Info.

ON
OFF

OFF

LOG_LEVEL_WARN

Set logging level to Warning.

ON
OFF

OFF

LOG_LEVEL_ERROR

Set logging level to Error.

ON
OFF

OFF

SANITIZER

Adds run-time instrumentation to the code. Supported options are:

  • Thread enables Thread Sanitizer.

  • Address enables Address Sanitizer.

OFF
Address
Thread

OFF