GooseFEM 1.4.1.dev2+g78f16df
Loading...
Searching...
No Matches
version.h File Reference

Version information. More...

#include "config.h"

Go to the source code of this file.

Namespaces

namespace  GooseFEM
 Toolbox to perform finite element computations.
 

Macros

#define GOOSEFEM_VERSION   "@PROJECT_VERSION@"
 Current version.
 

Functions

std::string GooseFEM::version ()
 Return version string, e.g.
 
std::vector< std::string > GooseFEM::version_dependencies ()
 Return versions of this library and of all of its dependencies.
 

Detailed Description

Version information.

License: This project is released under the GNU Public License (GPLv3).

Definition in file version.h.

Macro Definition Documentation

◆ GOOSEFEM_VERSION

#define GOOSEFEM_VERSION   "@PROJECT_VERSION@"

Current version.

Either:

  • Configure using CMake at install time. Internally uses::
     python -c "from setuptools_scm import get_version; print(get_version())"
    
  • Define externally using::
     MYVERSION=`python -c "from setuptools_scm import get_version; print(get_version())"`
     -DGOOSEFEM_VERSION="$MYVERSION"
    
    From the root of this project. This is what setup.py does.

Note that both CMakeLists.txt and setup.py will construct the version using setuptools_scm. Tip: use the environment variable SETUPTOOLS_SCM_PRETEND_VERSION to overwrite the automatic version.

Definition at line 35 of file version.h.