summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-version.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-version.cmake')
-rw-r--r--cmake/opentrack-version.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/opentrack-version.cmake b/cmake/opentrack-version.cmake
index 4fc1265a..d753535f 100644
--- a/cmake/opentrack-version.cmake
+++ b/cmake/opentrack-version.cmake
@@ -16,6 +16,8 @@ if(CMAKE_BUILD_TYPE)
endif()
endif()
+file(WRITE ${CMAKE_BINARY_DIR}/opentrack-version.h "#define OPENTRACK_VERSION \"${_build_type}${OPENTRACK_COMMIT}\"")
+
set(version-string "
#include \"opentrack-compat/export.hpp\"