https://github.com/Kitware/CMake
Revision 676ed21c66b7e4297f655110e2164ff22916127c authored by Bill Hoffman on 30 October 2006, 14:17:00 UTC, committed by Bill Hoffman on 30 October 2006, 14:17:00 UTC
1 parent bf29553
Raw File
Tip revision: 676ed21c66b7e4297f655110e2164ff22916127c authored by Bill Hoffman on 30 October 2006, 14:17:00 UTC
ENH: move from main tree
Tip revision: 676ed21
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