Skip to content
Browse files

Buildsystem: Do not print warning that user needs to do a git pull wi…

…th tags if configured to not use git at all
  • Loading branch information...
1 parent dfa56a3 commit 1ff184dbab73492c3541a960bd720863a05c1cc2 @Shauren Shauren committed Feb 12, 2013
Showing with 3 additions and 2 deletions.
  1. +2 −1 cmake/genrev.cmake
  2. +1 −1 src/genrev/CMakeLists.txt
View
3 cmake/genrev.cmake
@@ -13,11 +13,12 @@
if(NOT BUILDDIR)
# Workaround for funny MSVC behaviour - this segment only run during compile
+ set(NO_GIT ${WITHOUT_GIT})
set(GIT_EXEC ${GIT_EXECUTABLE})
set(BUILDDIR ${CMAKE_BINARY_DIR})
endif()
-if(WITHOUT_GIT)
+if(NO_GIT)
set(rev_date "1970-01-01 00:00:00 +0000")
set(rev_hash "Archived")
else()
View
2 src/genrev/CMakeLists.txt
@@ -10,6 +10,6 @@
# Need to pass old ${CMAKE_BINARY_DIR} as param because its different at build stage
add_custom_target(revision.h ALL
- COMMAND ${CMAKE_COMMAND} -DGIT_EXEC=${GIT_EXECUTABLE} -DBUILDDIR=${CMAKE_BINARY_DIR} -P ${CMAKE_SOURCE_DIR}/cmake/genrev.cmake
+ COMMAND ${CMAKE_COMMAND} -DNO_GIT=${WITHOUT_GIT} -DGIT_EXEC=${GIT_EXECUTABLE} -DBUILDDIR=${CMAKE_BINARY_DIR} -P ${CMAKE_SOURCE_DIR}/cmake/genrev.cmake
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

0 comments on commit 1ff184d

Please sign in to comment.
Something went wrong with that request. Please try again.