[CMake] Adding to PATH

Robert Dailey rcdailey at gmail.com
Wed Mar 25 20:04:23 EDT 2009


Thank's Gregory, this is an even better answer than I was looking for lol.

On Wed, Mar 25, 2009 at 6:17 PM, Gregory Peele ARA/CFD <gpeele at ara.com>wrote:

>  Robert,
>
>
>
> Looking at your example, you might want to try out FIND_PACKAGE(Doxygen).
>
>
>
> In general, my understanding is that it’s more common in CMake to call
> third-party programs using their full path rather than relying on an
> executable search path.  If the full path of the program is not known, then
> you can use the FIND_PROGRAM command to search for it, which looks in a
> variety of default locations and can be tailored to search wherever is
> appropriate.  It also takes into account Windows .exe suffixes vs. Linux no
> suffixes.
>
>
>
> Gregory Peele, Jr.
>
> Applied Research Associates, Inc.
>
>
>
> *From:* cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] *On
> Behalf Of *Robert Dailey
> *Sent:* Wednesday, March 25, 2009 7:12 PM
> *To:* cmake
> *Subject:* Re: [CMake] Adding to PATH
>
>
>
> Would this work?
>
>
>
>         set( ENV{PATH} "ENV{PATH};${CMAKE_SOURCE_DIR}/tools/doxygen" )
>
>
>
> On Wed, Mar 25, 2009 at 5:30 PM, Robert Dailey <rcdailey at gmail.com> wrote:
>
> Is there a way that I can temporarily add an executable search path to PATH
> for the Linux and Windows platforms? I temporarily wish to allow CMake to
> find certain third party command line applications so it may execute them.
> I'd be calling CMake's execute_process() function to do this. But this by no
> means should permanently change the PATH variable.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090325/8fc8d8ce/attachment-0001.htm>


More information about the CMake mailing list