[CMake] Environment variable for a custom command
Gregory C. Sharp
gcsharp at partners.org
Fri Aug 15 16:47:12 EDT 2008
David Cole wrote:
>
> add_custom_command(OUTPUT output COMMAND ${CMAKE_COMMAND} -S
> myscript.cmake)
>
> myscript.cmake:
> set(ENV{PATH} ...)
> execute_process(....)
>
> Make that "cmake -P" (not cmake -S) -S is the run this script arg to
> ctest...
>
Works great. Thanks!
--
Gregory C. Sharp
Dept. of Radiation Oncology
Massachusetts General Hospital
gcsharp at partners.org / 617-724-3866
http://gray.mgh.harvard.edu
The information transmitted in this electronic communication is intended only
for the person or entity to whom it is addressed and may contain confidential
and/or privileged material. Any review, retransmission, dissemination or other
use of or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. If you received this
information in error, please contact the Compliance HelpLine at 800-856-1983 and
properly dispose of this information.
More information about the CMake
mailing list