[CMake] Environment variable for a custom command
Bill Hoffman
bill.hoffman at kitware.com
Fri Aug 15 10:32:26 EDT 2008
Gregory C. Sharp wrote:
>
> I found this little tidbit in the FAQ:
>
> [E]nvironment variables SET in the CMakeLists.txt only take
> effect for cmake itself, so you cannot use this method to set
> an environment variable that a custom command might need.
>
> I would like to augment the path during a custom command.
> Is there a suggested workaround?
>
Run a cmake script in the custom command that runs the program via
execute_process.
-Bill
More information about the CMake
mailing list