[Cmake] What "path" do custom commands use?

Miller, James V (CRD) millerjv at crd.ge.com
Mon Jan 7 14:12:40 EST 2002


Thanks.  That was the problem.  Is there anyway we can work around this in general?  For instance,
could "custom commands" for DevStudio run another program that would ferret out a good path and then
exec the intended custom command executable?
 
So instead of the custom command being:
 
c:\itkQuality\fltk-1.0.11\fluid\fluid.exe -c -h
C:/itkQuality/Continuous/Insight-intel/Examples/Morphogenesis/BacterialColonyGUI.h -o
C:/itkQuality/Continuous/Insight-intel/Examples/Morphogenesis/BacterialColonyGUI.cxx
c:/itkQuality/Continuous/Insight/Examples/Morphogenesis/BacterialColonyGUI.fl 

it would something like
 
c:\itkQuality\CMake\hacks\fixEnviroment.bat  c:\itkQuality\fltk-1.0.11\fluid\fluid.exe -c -h
C:/itkQuality/Continuous/Insight-intel/Examples/Morphogenesis/BacterialColonyGUI.h -o
C:/itkQuality/Continuous/Insight-intel/Examples/Morphogenesis/BacterialColonyGUI.cxx
c:/itkQuality/Continuous/Insight/Examples/Morphogenesis/BacterialColonyGUI.fl 

It seems pretty problematic that DevStudio's environment for custom commands is not inherited.

-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Monday, January 07, 2002 1:54 PM
To: Miller, James V (CRD); CMake developers (E-mail)
Subject: Re: [Cmake] What "path" do custom commands use?


This is a "fun" problem with MSDev.   

MSDev has a nice feature of taking a snapshot of your PATH when
it is installed. From that point on it ignores the system PATH.
You can manually add new paths in Tools->Options->Directories->Executables.

-Bill


At 01:42 PM 1/7/2002 -0500, Miller, James V (CRD) wrote:


I am having a problem with the cmFLTKWrapUICommand when it is run on the PC.  When fluid.exe is run,
it cannot find a required dll.  The specific dll is one that Intel C++ provides which is what I used
to build fltk.
 
I can run fluid from the command line and it works fine.  However, when DevStudio runs fluid as a
custom command, the search path does not include the directory that has the Intel C++ dlls. This
directory is in my path when I run from the comand line.
 
Do custom commands have a special "path" associated with them? Is this a DevStudio problem?

Jim Miller 
_____________________________________
Visualization & Computer Vision
GE Corporate Research & Development
Bldg. KW, Room C218B
P.O. Box 8, Schenectady NY 12301

millerjv at crd.ge.com < mailto:millerjv at crd.ge.com <mailto:millerjv at crd.ge.com> >
(518) 387-4005, Dial Comm: 8*833-4005, 
Cell: (518) 505-7065, Fax: (518) 387-6981 

 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20020107/50aae96a/attachment.html>


More information about the CMake mailing list