main.cxx 287 B

12345678910111213141516
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main(int argc, char *argv[])
  4. {
  5. char* var = getenv("CMAKE_ENVIRONMENT_TEST_VAR");
  6. if (!var)
  7. {
  8. var = "(null)";
  9. }
  10. fprintf(stdout, "Environment:\n");
  11. fprintf(stdout, " CMAKE_ENVIRONMENT_TEST_VAR='%s'\n", var);
  12. return 0;
  13. }