Kitware/CMake — pull request #31 by jbohren (2012-12-19 04:22:26+00:00)
Title: Support for environment variables in custom commands in UNIX Makefiles 

Here's a first stab at support for per-target environment variables for custom targets / commands with UNIX Makefiles. For more information, see ticket on the kitware bug tracker here: http://public.kitware.com/Bug/view.php?id=5145

You can see a usage example [here](https://github.com/jbohren-forks/CMake/blob/master/Tests/CustomCommandEnvVariables/CMakeLists.txt).

You can run a corresponding unit test from the main directory by executing:

ctest -R CustomCommandEnvVariables

Note that support is needed for:
- ~~UNIX Makefiles~~
- XCode Projects
- Visual Studio Projects
- Ninja

#### Squashed commit messages

reindent for clarity

Adding internal API to get environment variables for custom commands

Adding test for new custom command env setting

Updating other references to internal API changes

adding env_test program

updating env test to write out a product

polishing environment variable test case

Adding placeholder for env var list in cmCustomCommand

adding implementations for env variable support

changing env variables from vector of pair to map

adding support for environment variables in custom commands in UNIX Makefiles

fixing indentation

fixing indentation

fixing indentation

changing test variable name to be clearer that it's an example