CMake Options#

Pass these with -D<OPTION>=ON/OFF during configuration, or set them in a CMake preset.

cmake -B build --preset vcpkg-ninja -DCOURAGE_ENABLE_LOGGING=OFF

Option Default Description
COURAGE_USE_CPM ON Fall back to CPM for any dependency not provided by vcpkg.
COURAGE_ENABLE_LOGGING ON Enable debug log output. Disable for cleaner release builds.
COURAGE_USE_TRACY OFF Enable Tracy profiler integration. Requires Tracy to be installed.
COURAGE_FORCE_DEV OFF Force dev mode on even in release builds.
BUILD_SWITCH OFF Build stubbed Nintendo Switch target (OpenGL-only Rainfall, no SDL3).
DCOURAGE_SUPPRESS_UB ON Enable undefined behaviour fixes for the PC port (memcpy-based type-punning, isfinite guards, etc).