Skip to content

Latest commit

 

History

History
122 lines (101 loc) · 3.56 KB

File metadata and controls

122 lines (101 loc) · 3.56 KB

CMake options

provides numerous CMake options for changing the behavior and configuration of packages built with CMake. These options allow the developer to enable/disable certain 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 from sources.

Option Description Possible values Default
CMAKE_BUILD_TYPE CMake optimization build type. Release Debug Release
BUILD_ALL Build all sub-packages. Setting to ON sets to ON BUILD_TOOL, BUILD_LIBRARY, and BUILD_DOCS. OFF ON OFF
BUILD_LIBRARY Build the libraries sub-packages. It is set to ON if BUILD_ALL is set to ON. OFF ON ON
BUILD_TOOL Build the tools sub-packages. It is set to ON if BUILD_ALL is set to ON. OFF ON ON
BUILD_DOCS Build the documentation sub-packages. It is set to ON if BUILD_ALL is set to ON. OFF ON OFF
BUILD_TESTS Build the 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 library tests. It is set to ON if BUILD_TESTS is set to ON. OFF ON OFF
BUILD_TOOL_TESTS Build the application tests. It is set to ON if BUILD_TESTS is set to ON. OFF ON OFF
BUILD_DOCS_TESTS Build the documentation tests. It is set to ON if BUILD_TESTS is set to ON. OFF ON OFF
BUILD_MANUAL_TESTS Build the manual tests only if BUILD_TESTS is set to ON. OFF ON OFF
LOG_INFO Activate 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