summaryrefslogtreecommitdiffstats
path: root/Tests/Environment/main.cxx
blob: 55bc77f963f81be6b6bdad88cd82fedb70a24afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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;
}