diff options
author | Sean Qureshi <stqism@risingstormgames.com> | 2013-08-07 18:52:11 -0700 |
---|---|---|
committer | Sean Qureshi <stqism@risingstormgames.com> | 2013-08-07 18:52:11 -0700 |
commit | b3e02d9c9da0a508e52e60037f0f65ccf042f95d (patch) | |
tree | 1ee45f2263f862cb84419bc91d585efe1f691483 | |
parent | 6a84fd6f0b33d1c07125d43e80a19d2086682d95 (diff) |
Adds full -D support to toxics versioning, includes the commit number
-rw-r--r-- | testing/toxic/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/toxic/CMakeLists.txt b/testing/toxic/CMakeLists.txt index f30d8e9e..38f02dc6 100644 --- a/testing/toxic/CMakeLists.txt +++ b/testing/toxic/CMakeLists.txt | |||
@@ -1,6 +1,9 @@ | |||
1 | cmake_minimum_required(VERSION 2.6.0) | 1 | cmake_minimum_required(VERSION 2.6.0) |
2 | project(toxic C) | 2 | project(toxic C) |
3 | 3 | ||
4 | execute_process(COMMAND git rev-list HEAD --count OUTPUT_VARIABLE COMMIT) | ||
5 | SET(GCC_COVERAGE_COMPILE_FLAGS '-DTOXICVER="0.1.1_r${COMMIT}"') | ||
6 | add_definitions(${GCC_COVERAGE_COMPILE_FLAGS}) | ||
4 | set(exe_name toxic) | 7 | set(exe_name toxic) |
5 | 8 | ||
6 | add_executable(${exe_name} | 9 | add_executable(${exe_name} |