Skip to content

Commit

Permalink
Make src/version.h depending on git
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed May 1, 2021
1 parent 43a3964 commit 828e467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,6 @@ else()
message(STATUS "Support for ccache: ${CCACHE_SUPPORT}")
endif()

set_property(DIRECTORY APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS
"${CMAKE_SOURCE_DIR}/.git/index")

if(CMAKE_VERSION VERSION_LESS "3.7.0")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
Expand Down Expand Up @@ -1676,6 +1672,10 @@ get_target_property(BUILD_FLAGS mixxx-lib COMPILE_OPTIONS)

# uses CMAKE_PROJECT_VERSION MIXXX_VERSION_PRERELEASE GIT_BRANCH GIT_DESCRIBE GIT_COMMIT_DATE BUILD_FLAGS
configure_file(src/version.h.in src/version.h @ONLY)
set_property(SOURCE src/version.h
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS
"${CMAKE_SOURCE_DIR}/.git/index")

# Windows-only resource file
if(WIN32)
Expand Down

0 comments on commit 828e467

Please sign in to comment.