aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorclick <click@gonnamakeyou.com>2013-02-11 20:04:27 +0100
committerclick <click@gonnamakeyou.com>2013-02-11 20:04:27 +0100
commit9bd8baf1ab80e7a2f8431fb9d8f02bfc88e25ad2 (patch)
treee9f89914018bfaecc25c6e7673e0000f7b8a6eab /CMakeLists.txt
parent620a43b4efa429a34f1671d1ede39f43dffeee9d (diff)
Buildsystem/CMake: Fix an issue with MSVC not finding git-binary when updating the revisionhash/revisiondate + rename DISABLEGITCHECK parameter to WITHOUT_GIT (to adhere to our standard)
Also cleaned up the checks slightly + moved git-specific testing to its own macro (minor changes to shaurens original patch applied)
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 7b075b6ede3..9ea5b4825a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,6 +61,10 @@ if( UNIX )
find_package(BZip2)
endif()
+if( NOT DISABLEGITCHECK )
+ find_package(Git)
+endif()
+
# Find revision ID and hash of the sourcetree
include(cmake/genrev.cmake)