diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-06 05:33:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-10-06 05:54:22 +0200 |
commit | 7e85f86b795b9ce4f752b7a329d37ae9189e2675 (patch) | |
tree | 7639da97e007fb0f98693da8567d9b903b01eff5 /CMakeLists.txt | |
parent | 0f7a4ba62369a42cf6b513ce0fa59d117551f0ed (diff) |
un-bitrot installer support
Sponsored-by: TrackHat
Issue: #229
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6266ef51..67064d76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,8 @@ if(GIT_FOUND) git_describe(OPENTRACK__COMMIT --tags --always) endif() +file(WRITE ${CMAKE_BINARY_DIR}/opentrack-version.h "#define OPENTRACK_VERSION \"${OPENTRACK__COMMIT}\"") + SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) SET(CMAKE_SKIP_INSTALL_RPATH FALSE) |