https://github.com/Kitware/CMake
Revision dad271e8b7eec9ce781bccb9e7e7c9ed4f55003c authored by Brad King on 17 June 2019, 12:03:29 UTC, committed by Brad King on 17 June 2019, 12:03:29 UTC
2 parent s 3d82163 + 276b56f
Raw File
Tip revision: dad271e8b7eec9ce781bccb9e7e7c9ed4f55003c authored by Brad King on 17 June 2019, 12:03:29 UTC
Merge branch 'FindBLAS-OpenBLAS-thread' into release-3.15
Tip revision: dad271e
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