summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2021-02-12 02:04:31 +0100
committererorcun <erorcunerorcun@hotmail.com.tr>2021-02-12 14:38:03 +0100
commit1b8d03f3aaaeaf96844f2d07caddabf90ec1e300 (patch)
treeed66a28c451ecbafdf095e5eaf5a8cb238e3fdbe /CMakeLists.txt
parentRemove version text, add toggleable debug info(with commit hash!) (diff)
downloadre3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar.gz
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar.bz2
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar.lz
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar.xz
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.tar.zst
re3-1b8d03f3aaaeaf96844f2d07caddabf90ec1e300.zip
Diffstat (limited to '')
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8d753d80..5396d3b4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,6 +6,10 @@ set(PROJECT RE3)
project(${EXECUTABLE} C CXX)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
+include(GetGitRevisionDescription)
+get_git_head_revision(GIT_REFSPEC GIT_SHA1 "ALLOW_LOOKING_ABOVE_CMAKE_SOURCE_DIR")
+message(STATUS "Building ${CMAKE_PROJECT_NAME} GIT SHA1: ${GIT_SHA1}")
+
if(WIN32)
set(${PROJECT}_AUDIOS "OAL" "MSS")
else()