# #
########################################################################
-FILE(COPY # for binary dir:
+SET(_macros
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_invoke_autopilot.cmake
${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_setup_target.cmake
+ ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_query_git_information.cmake
+ )
+FILE(COPY ${_macros}
DESTINATION ${CMAKE_BINARY_DIR}/${DEAL_II_CMAKE_MACROS_RELDIR}
)
-INSTALL(FILES # for installation:
- ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_initialize_cached_variables.cmake
- ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_invoke_autopilot.cmake
- ${CMAKE_SOURCE_DIR}/cmake/macros/macro_deal_ii_setup_target.cmake
+INSTALL(FILES ${_macros}
DESTINATION ${DEAL_II_CMAKE_MACROS_RELDIR}
COMPONENT library
)
# short and long revision. If ${CMAKE_SOURCE_DIR} is the root of a git
# repository the following variables will be populated:
#
+# GIT_BRANCH
+# GIT_REVISION
+# GIT_SHORTREV
+#
+# If this macro is called within the deal.II build system the variables are
+# prefixed with DEAL_II_:
+#
# DEAL_II_GIT_BRANCH
# DEAL_II_GIT_REVISION
# DEAL_II_GIT_SHORTREV
MESSAGE(STATUS "Query git repository information.")
+ #
+ # If DEAL_II_BASE_NAME is defined and DEAL_II_PROJECT_CONFIG_INCLUDED was
+ # not set, we assume that we are called from within the deal.II build
+ # system. In this case we prepend all variables by "DEAL_II_"
+ #
+ IF( DEFINED DEAL_II_BASE_NAME AND
+ NOT DEFINED DEAL_II_PROJECT_CONFIG_INCLUDED )
+ SET(_prefix "DEAL_II_")
+ ELSE()
+ SET(_prefix "")
+ ENDIF()
+
FIND_PACKAGE(Git)
#
)
IF(${_result} EQUAL 0)
STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+)\"$"
- "\\1" DEAL_II_GIT_REVISION "${_info}")
+ "\\1" ${_prefix}GIT_REVISION "${_info}")
STRING(REGEX REPLACE "^\"([^ ]+) ([^ ]+)\"$"
- "\\2" DEAL_II_GIT_SHORTREV "${_info}")
+ "\\2" ${_prefix}GIT_SHORTREV "${_info}")
ENDIF()
#
OUTPUT_STRIP_TRAILING_WHITESPACE
)
IF(${_result} EQUAL 0)
- STRING(REGEX REPLACE "refs/heads/" "" DEAL_II_GIT_BRANCH "${_branch}")
+ STRING(REGEX REPLACE "refs/heads/" "" ${_prefix}GIT_BRANCH "${_branch}")
ENDIF()
ENDIF()
<h3>Specific improvements</h3>
<ol>
+ <li> New: A new macro <code>DEAL_II_QUERY_GIT_INFORMATION</code> is
+ provided to query user projects for git repository information simmilarly
+ to those exported by deal.II.
+ <br>
+ (Matthias Maier, 2015/01/21)
+ </li>
+
<li> Fixed: FEFaceValues and FESubfaceValues did not fill the
jacobians and inverse jacobians if requested via the update flags.
This is now fixed.