summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorerorcun <erayorcunus@gmail.com>2021-02-12 16:15:51 +0100
committerGitHub <noreply@github.com>2021-02-12 16:15:51 +0100
commita44d7d86cb66ff584eb497ec1efb70d11d58288d (patch)
treec4e99fefd4af077dfe7a7479978d013cf14f6ff6 /CMakeLists.txt
parentUpdate TXDs (diff)
parentFix sha1 on premake linux (diff)
downloadre3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.gz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.bz2
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.lz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.xz
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.tar.zst
re3-a44d7d86cb66ff584eb497ec1efb70d11d58288d.zip
Diffstat (limited to 'CMakeLists.txt')
-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()