Macros | Functions | Variables
CMakeCXXCompilerId.cpp File Reference

Go to the source code of this file.

Macros

#define COMPILER_ID   ""
 
#define PLATFORM_ID   ""
 
#define ARCHITECTURE_ID   ""
 
#define DEC(n)
 
#define HEX(n)
 

Functions

int main (int argc, char *argv[])
 

Variables

char const * info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"
 
char const * info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"
 
char const * info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"
 

Macro Definition Documentation

#define ARCHITECTURE_ID   ""

Definition at line 400 of file CMakeCXXCompilerId.cpp.

#define COMPILER_ID   ""

Definition at line 246 of file CMakeCXXCompilerId.cpp.

#define DEC (   n)
Value:
('0' + (((n) / 10000000)%10)), \
('0' + (((n) / 1000000)%10)), \
('0' + (((n) / 100000)%10)), \
('0' + (((n) / 10000)%10)), \
('0' + (((n) / 1000)%10)), \
('0' + (((n) / 100)%10)), \
('0' + (((n) / 10)%10)), \
('0' + ((n) % 10))
std::void_t< T > n

Definition at line 404 of file CMakeCXXCompilerId.cpp.

#define HEX (   n)
Value:
('0' + ((n)>>28 & 0xF)), \
('0' + ((n)>>24 & 0xF)), \
('0' + ((n)>>20 & 0xF)), \
('0' + ((n)>>16 & 0xF)), \
('0' + ((n)>>12 & 0xF)), \
('0' + ((n)>>8 & 0xF)), \
('0' + ((n)>>4 & 0xF)), \
('0' + ((n) & 0xF))
std::void_t< T > n

Definition at line 415 of file CMakeCXXCompilerId.cpp.

#define PLATFORM_ID   ""

Definition at line 356 of file CMakeCXXCompilerId.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 473 of file CMakeCXXCompilerId.cpp.

474 {
475  int require = 0;
476  require += info_compiler[argc];
477  require += info_platform[argc];
478 #ifdef COMPILER_VERSION_MAJOR
479  require += info_version[argc];
480 #endif
481 #ifdef SIMULATE_ID
482  require += info_simulate[argc];
483 #endif
484 #ifdef SIMULATE_VERSION_MAJOR
485  require += info_simulate_version[argc];
486 #endif
487  (void)argv;
488  return require;
489 }
char const * info_compiler
char const * info_platform

Variable Documentation

char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"

Definition at line 466 of file CMakeCXXCompilerId.cpp.

char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"

Definition at line 253 of file CMakeCXXCompilerId.cpp.

char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"

Definition at line 465 of file CMakeCXXCompilerId.cpp.