You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
287 B
17 lines
287 B
15 years ago
|
#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;
|
||
|
}
|