Useful variables/macros
CMake variables
TODO
C/C++ macros
The CMake build script generates lmmsconfig.h based on those CMake variables. You can find the list of possible macro definitions in src/lmmsconfig.h.in.
Checking target OS
There are list of macros which will be defined for correspoding target OS. Don't try to check the value, check if they are defined instead.
LMMS_BUILD_WIN32: Windows, either 32bit or 64bitLMMS_BUILD_WIN64: Windows 64bitLMMS_BUILD_APPLE: macOSLMMS_BUILD_LINUX: LinuxLMMS_BUILD_OPENBSD: OpenBSDLMMS_BUILD_FREEBSD: FreeBSDLMMS_BUILD_HAIKU: Haiku
Last updated
Was this helpful?