[CMake] FindPythonLibs.cmake

Bill Hoffman bill.hoffman at kitware.com
Tue Feb 12 13:48:26 EST 2008


Alexander Neundorf wrote:
> On Tuesday 12 February 2008, clinton at elemtech.com wrote:
>> Anyone know why FindPythonLibs.cmake in CVS adds a custom target?
>> In Visual Studio, it shows up as a project (__FindPythonLibsHelper) and it
>> appears to do nothing.
> 
> Yes, it is a helper target which helps with building python modules, 
> especially in the static case.
> Maybe it could be replaced with a global property.
> The idea is to do something exactly when the file is included the first time, 
> independent from the directory where it is used, so variables don't work.
> 

Targets should not be used for this type of thing.  They actually show 
up in IDE's like Xcode and Visual Studio.

-Bill


More information about the CMake mailing list