summaryrefslogtreecommitdiffstats
path: root/Tests/Environment/main.cxx
blob: 2e1bf4c28b2eff5836df50871a09b70ab5e06029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  char* var = getenv("CMAKE_ENVIRONMENT_TEST_VAR");
  if (!var)
    {
    var = "(null)";
    }

  fprintf(stdout, "Environment:\n");
  fprintf(stdout, "  CMAKE_ENVIRONMENT_TEST_VAR='%s'\n", var);

  return 0;
}