Skip to content

theambient/cmake-modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

cmake-modules

My collection of cmake modules

Licesnce and copyright

This collection is freely distributable without any warranty. You can use it for any purposes including proprietary projects.

The author of this collection is Ruslan Mullakhmetov.

Modules Description

GitUtils

Provide a number of function to extract information from local git repository

git_revision( DIR OUTVAR )

Gets revision number from specified local git repository (dir).

Git it decentralized SCM system, so there is no explicit revision number, instead we assume a number of commits as revision number (at least as a good aproximation). This method was suggested by OderWatless in this thread http://stackoverflow.com/questions/4120001/what-is-the-git-equivalent-for-revision-number

git_last_commit_hash( DIR OUTVAR )

Gets last commit hash from specified local git repository (dir).

EnableCpp11

Enable C++11 support for various compilers and build systems.

Currently supported:

  • GNU C++ Compiler (g++)
  • Clang compiler (LLVM frontend)
  • Appple Xcode

usage:

include(EnableCpp11)

About

My collection of cmake modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published