Skip to content

Commit

Permalink
Buildsystem: Do not print warning that user needs to do a git pull wi…
Browse files Browse the repository at this point in the history
…th tags if configured to not use git at all
  • Loading branch information
Shauren committed Feb 12, 2013
1 parent dfa56a3 commit 1ff184d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmake/genrev.cmake
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/genrev/CMakeLists.txt
Expand Up @@ -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.