CMake Options
CMake Options
The following variables influence the CMake build of CAF (notation is <variable name>:<type>[=<default>])
General Options
-
CAF_BUILD_STATIC:BOOL=nobuild static libraries in addition to shared libraries -
CAF_BUILD_STATIC_ONLY:BOOL=nobuild static libraries only -
CAF_CXX_WARNINGS_AS_ERRORS:BOOL=notreat warnings as erros -
CAF_ENABLE_ADDRESS_SANITIZER:BOOL=nobuild with ASAN -
CAF_ENABLE_RUNTIME_CHECKS:BOOL=nocompile CAF with runtime requirement checks -
CAF_LOG_LEVEL:STRINGproduce logfiles while running, from "0" for errors only to "4" for traces -
CAF_MORE_WARNINGS:BOOL=nobuild with most compiler warning enabled -
CAF_NO_AUTO_LIBCPP:BOOL=nodo not automatically add-stdlib=libc++when using Clang -
CAF_NO_COMPILER_CHECK:BOOL=nosuppress compatibility check for compiler -
CAF_NO_CURL_EXAMPLES:BOOL=noalways exclude Curl examples -
CAF_NO_EXAMPLES:BOOL=noexclude examples from build -
CAF_NO_MEM_MANAGEMENT:BOOL=nodisable CAF's default memory management -
CAF_NO_PROTOBUF_EXAMPLES:BOOL=noalways exclude Protobuf examples -
CAF_NO_QT_EXAMPLES:BOOL=noalways exclude Qt examples -
CAF_NO_SUMMARY:BOOL=nosuppress printing a summary at the end -
CAF_NO_UNIT_TESTS:BOOL=nodo not build unit tests -
CAF_USE_ASIO:BOOL=nouse Boost.ASIO instead of the native IO backend
Submodule Options
-
CAF_NO_CASH:BOOL=nodisable the "C++ Actor SHell" even if submodule is loaded -
CAF_NO_NEXUS:BOOL=nodisable Nexus even if submodule is loaded -
CAF_NO_OPENCL:BOOL=nodisable OpenCL component even if submodule is loaded -
CAF_NO_RIAC:BOOL=nodisable the RIAC library even if submodule is loaded
Platform-specific Options
-
CAF_OSX_SYSROOT:PATHcan be set toiphonesimulatorfor iOS development -
CAF_IOS_DEPLOYMENT_TARGET:STRINGcan be set along withCMAKE_OSX_ARCHITECTURESfor a minimum iOS version