https://github.com/Kitware/CMake
Raw File
Tip revision: bc4b6aa68dd48ffd567ae7a24abd8911a689c38a authored by Brad King on 02 November 2015, 14:12:44 UTC
CMake 3.4.0-rc3
Tip revision: bc4b6aa
SDCC-C-DetermineCompiler.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 @MACRO_DEC@(SDCC/100)
#  define COMPILER_VERSION_MINOR @MACRO_DEC@(SDCC/10 % 10)
#  define COMPILER_VERSION_PATCH @MACRO_DEC@(SDCC    % 10)")
back to top