diff --git a/CMakeLists.txt b/CMakeLists.txt index e9a3f528f..5a9d042ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,8 +60,8 @@ ENDIF() # Macro to set the Git repository and tag, and display a message MACRO(SetGitRepositoryTag project_name git_repository git_tag) SET(${project_name}_GIT_REPOSITORY ${git_repository}) - SET(${project_name}_GIT_TAG ${git_tag}) - MESSAGE(STATUS "${project_name} repository: ${git_repository} (${git_tag})") + SET(${project_name}_GIT_TAG ${git_tag} CACHE STRING "${project_name} repository") + MESSAGE(STATUS "${project_name} repository: ${git_repository} (${${project_name}_GIT_TAG})") ENDMACRO(SetGitRepositoryTag) IF (PLUSBUILD_OFFLINE_BUILD)