include(DefineInstallationPaths)
include(GenerateExportHeader)
-include(GetGitRevisionDescription)
-
-get_git_head_revision(GIT_REFSPEC GIT_SHA1)
-
add_definitions(
-DQT_DISABLE_DEPRECATED_BEFORE=0x000000
-DQT_USE_QSTRINGBUILDER
-DQT_MESSAGELOGCONTEXT #enable function name and line number in debug output
)
-# if we cannot get it from git, directly try .tag (packages)
-# this will work if the tar balls have been properly created
-# via git-archive.
-if ("${GIT_SHA1}" STREQUAL "GITDIR-NOTFOUND")
- file(READ ${CMAKE_SOURCE_DIR}/.tag sha1_candidate)
- string(REPLACE "\n" "" sha1_candidate ${sha1_candidate})
- if (NOT ${sha1_candidate} STREQUAL "$Format:%H$")
- message("${sha1_candidate}")
- set (GIT_SHA1 "${sha1_candidate}")
- endif()
-endif()
-message(STATUS "GIT_SHA1 ${GIT_SHA1}")
-
set(SYSCONFDIR ${SYSCONF_INSTALL_DIR})
set(SHAREDIR ${CMAKE_INSTALL_FULL_DATADIR})
if( MIRALL_VERSION_BUILD )
set( MIRALL_VERSION_STRING "${MIRALL_VERSION_STRING} (build ${MIRALL_VERSION_BUILD})" )
endif( MIRALL_VERSION_BUILD )
+
+# Version from Debian changelog
+if( EXTERNAL_VERSION )
+ set( MIRALL_VERSION_STRING "${EXTERNAL_VERSION}" )
+endif( EXTERNAL_VERSION )