CMake/Modules/Compiler/SDCC-C-DetermineCompiler.cmake

11 lines
344 B
CMake

# sdcc, the small devices C compiler for embedded systems,
# http://sdcc.sourceforge.net */
set(_compiler_id_pp_test "defined(SDCC)")
set(_compiler_id_version_compute "
/* SDCC = VRP */
# define COMPILER_VERSION_MAJOR DEC(SDCC/100)
# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10)
# define COMPILER_VERSION_PATCH DEC(SDCC % 10)")