https://github.com/Kitware/CMake
Raw File
Tip revision: b0cce4747eb1f7abda7cc6004c16748c8c50621c authored by Bill Hoffman on 24 September 2008, 17:52:10 UTC
ENH: remove RC 2.6.2 is ready
Tip revision: b0cce47
CheckVariableExists.c
#ifdef CHECK_VARIABLE_EXISTS

extern int CHECK_VARIABLE_EXISTS;

#ifdef __CLASSIC_C__
int main(){
  int ac;
  char*av[];
#else
int main(int ac, char*av[]){
#endif
  if(ac > 1000){return *av[0];}
  return CHECK_VARIABLE_EXISTS;
}

#else  /* CHECK_VARIABLE_EXISTS */

#  error "CHECK_VARIABLE_EXISTS has to specify the variable"

#endif /* CHECK_VARIABLE_EXISTS */
back to top