https://github.com/Kitware/CMake
Revision 661622f011810093433afa5c9a4795b3d2f19070 authored by Brad King on 24 December 2014, 11:38:24 UTC, committed by CMake Topic Stage on 24 December 2014, 11:38:24 UTC
07fc7b75 Tests: Test using objects from a language enabled in a subdirectory (#15325)
fdbfcfdf Ninja: Generate rules only for languages compiled in a target (#15325)

2 parent s c20d3d3 + 07fc7b7
Raw File
Tip revision: 661622f011810093433afa5c9a4795b3d2f19070 authored by Brad King on 24 December 2014, 11:38:24 UTC
Merge topic 'ninja-fix-subdir-objlib-languages'
Tip revision: 661622f
CheckFunctionExists.c
#ifdef CHECK_FUNCTION_EXISTS

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

#else  /* CHECK_FUNCTION_EXISTS */

#  error "CHECK_FUNCTION_EXISTS has to specify the function"

#endif /* CHECK_FUNCTION_EXISTS */
back to top