On Wed, Feb 27, 2008 at 1:32 PM, Cedric Pinson <[EMAIL PROTECTED]> wrote:
> Hi,
>  i am new to cmake and i would like to use it to make a python module,
>  but i don't know how to get the version of python installed on the
>  system,

Such questions are specific to whatever tool you're trying to
determine the version of.  Sometimes you can get the version of a tool
by running a command on the command line.  In that case you
execute_process with whatever the tool requires and deal with the
output however you like.  You might, for instance, do a string(REGEX
REPLACE ...) on the output.  Sometimes the version of a tool is
contained in a .h file.  In that case you'd use try_compile and write
some C preprocessor commands to capture the output.


Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to