[CMake] Python installation files on linux
Brandon Van Every
bvanevery at gmail.com
Wed Feb 27 17:10:19 EST 2008
On Wed, Feb 27, 2008 at 1:32 PM, Cedric Pinson <mornifle at plopbyte.net> 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
More information about the CMake
mailing list