https://github.com/Kitware/CMake
Revision 5e15f398860712930387b78e36a7ae5ab8a9b775 authored by Stephen Kelly on 29 August 2013, 08:28:52 UTC, committed by Stephen Kelly on 29 August 2013, 08:28:52 UTC
The input dir being tested is normalized, so ensure that the entries
in the vector are normalized too (eg no trailing slash).
1 parent b6f6802
Raw File
Tip revision: 5e15f398860712930387b78e36a7ae5ab8a9b775 authored by Stephen Kelly on 29 August 2013, 08:28:52 UTC
Normalize system directories from the interface target property
Tip revision: 5e15f39
sleep.c
#if defined(_WIN32)
# include <windows.h>
#else
# include <unistd.h>
#endif

/* sleeps for n seconds, where n is the argument to the program */
int main(int argc, char** argv)
{
  int time;
  if(argc > 1)
    {
    time = atoi(argv[1]);
    }
#if defined(_WIN32)
  Sleep(time * 1000);
#else
  sleep(time);
#endif
  return 0;
}
back to top