3. CMake optionsΒΆ

eProsima AML-IP provides numerous CMake options for changing the behavior and configuration of AML-IP packages built with CMake. These options allow the developer to enable/disable certain AML-IP settings by defining these options to ON/OFF or a string value at the CMake execution.

Warning

These options are only for advanced developers who installed eProsima AML-IP from sources.

Option

Description

Possible values

Default

CMAKE_BUILD_TYPE

CMake optimization build type.

Release
Debug

Release

BUILD_ALL

Build all AML-IP sub-packages.
Setting to ON sets to ON
BUILD_TOOL, BUILD_LIBRARY, and
BUILD_DOCS.

OFF
ON

OFF

BUILD_LIBRARY

Build the AML-IP libraries sub-packages.
It is set to ON if BUILD_ALL is set to ON.

OFF
ON

ON

BUILD_TOOL

Build the AML-IP tools sub-packages.
It is set to ON if BUILD_ALL is set to ON.

OFF
ON

ON

BUILD_DOCS

Build the AML-IP documentation sub-packages.
It is set to ON if BUILD_ALL is set to ON.

OFF
ON

OFF

BUILD_TESTS

Build the AML-IP 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 AML-IP library tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_TOOL_TESTS

Build the AML-IP application tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_DOCS_TESTS

Build the AML-IP documentation tests. It is
set to ON if BUILD_TESTS is set to ON.

OFF
ON

OFF

BUILD_MANUAL_TESTS

Build the AML-IP manual tests only if
BUILD_TESTS is set to ON.

OFF
ON

OFF

LOG_INFO

Activate AML-IP 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.

OFF
ON

OFF

TSAN_BUILD

Activate thread sanitizer build.

OFF
ON

OFF