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 <gpe...@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-boun...@cmake.org [mailto:cmake-boun...@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 <rcdai...@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. > > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake