-
Notifications
You must be signed in to change notification settings - Fork 561
Compilation and installation options
By default, the make install command will install the library globally in your system (/usr/lib for example).
You can change that location by using a dedicated cmake option:
cmake -DCMAKE_INSTALL_PREFIX=/destination/path ..By default, logging is disabled until you set cpp_redis::active_logger.
However, this does not prevent the presence of lines of code intended for logging and trying to output logs (like if (active_logger) { active_logger->info(...); }.
If you wish those lines to be suppressed from the source code (for increasing performance by removing unnecessary checks for example), you can set the CMake variable NO_LOGGING.
# Remove line of codes relates to logging from source code at compile time
cmake .. -DNO_LOGGING=1# Change the read size used to read data from sockets (default value: 4096)
cmake .. -DREAD_SIZE=4096cmake .. -DBUILD_TESTS=trueYou will also need to install some dependencies required to build the tests (GoogleTest).
This can be done by executing the install_deps.sh script, located in the root of the repository. This script installs the dependencies locally: no dependency is installed globally in your system.
cmake .. -DBUILD_EXAMPLES=trueNeed more information? Contact me.