]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: query git information at right time
authorMatthias Maier <tamiko@43-1.org>
Thu, 1 Dec 2022 05:45:52 +0000 (23:45 -0600)
committerMatthias Maier <tamiko@43-1.org>
Fri, 17 Mar 2023 12:44:53 +0000 (07:44 -0500)
cmake/config/Config.cmake.in
cmake/setup_finalize.cmake
cmake/setup_write_config.cmake

index c5d2b919a30707cb5b9b844d5e0f8b853f4c6f25..d5f1dac5641dc5514d532ab0b1fd61f7d73c0bc3 100644 (file)
@@ -20,7 +20,6 @@
 ##                                                                    ##
 ########################################################################
 
-
 #
 # General information
 #
@@ -45,7 +44,6 @@ set(DEAL_II_PROJECT_CONFIG_NAME "@DEAL_II_PROJECT_CONFIG_NAME@")
 set(DEAL_II_BUILD_TYPE "@CMAKE_BUILD_TYPE@")
 set(DEAL_II_BUILD_TYPES "@DEAL_II_BUILD_TYPES@")
 
-
 #
 # Information about the project location
 #
@@ -90,7 +88,6 @@ if(NOT ${DEAL_II_PACKAGE_NAME}_FIND_QUIETLY)
   endif()
 endif()
 
-
 #
 # Include all convenience macros:
 #
@@ -105,7 +102,6 @@ foreach(file ${_macro_files})
   include(${file})
 endforeach()
 
-
 #
 # Compiler and linker configuration
 #
@@ -140,7 +136,6 @@ set(DEAL_II_MPIEXEC_NUMPROC_FLAG "@MPIEXEC_NUMPROC_FLAG@")
 set(DEAL_II_MPIEXEC_PREFLAGS "@MPIEXEC_PREFLAGS@")
 set(DEAL_II_MPIEXEC_POSTFLAGS "@MPIEXEC_POSTFLAGS@")
 
-
 #
 # Information about library targets and feature configuration
 #
index 090c262da7fc9994c8af2712478877919081fad0..6ab2f2890f8c3a7635e566b5a0b8b509800659f0 100644 (file)
@@ -70,3 +70,24 @@ endforeach()
 file(REMOVE
   ${CMAKE_BINARY_DIR}/${DEAL_II_PROJECT_CONFIG_RELDIR}/${DEAL_II_PROJECT_CONFIG_NAME}Targets.cmake
   )
+
+
+########################################################################
+#                                                                      #
+#                Query for git repository information:                 #
+#                                                                      #
+########################################################################
+
+deal_ii_query_git_information("DEAL_II")
+
+file(WRITE ${CMAKE_BINARY_DIR}/revision.log
+"###
+#
+#  Git information:
+#        Branch:    ${DEAL_II_GIT_BRANCH}
+#        Revision:  ${DEAL_II_GIT_REVISION}
+#        Timestamp: ${DEAL_II_GIT_TIMESTAMP}
+#
+###"
+  )
+
index 58c6bd5995cc06bd616d0dabb36477be56164c26..c98b7abd7d1aee90fbeba31eccad811aaabbe4e3 100644 (file)
 ## ---------------------------------------------------------------------
 
 
-########################################################################
-#                                                                      #
-#                Query for git repository information:                 #
-#                                                                      #
-########################################################################
-
-deal_ii_query_git_information("DEAL_II")
-
-file(WRITE ${CMAKE_BINARY_DIR}/revision.log
-"###
-#
-#  Git information:
-#        Branch:    ${DEAL_II_GIT_BRANCH}
-#        Revision:  ${DEAL_II_GIT_REVISION}
-#        Timestamp: ${DEAL_II_GIT_TIMESTAMP}
-#
-###"
-  )
-
-
 ########################################################################
 #                                                                      #
 #              Write a nice configuration summary to file:             #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.