Skip to content

Commit

Permalink
Added dynamic versioning to the Fortran side
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jun 17, 2024
1 parent 38c7db1 commit c20e5f3
Show file tree
Hide file tree
Showing 4 changed files with 391 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
!src/
!src/*/
!*.f90
!src/globals/module_globals.f90.in
!.gitignore
!CMakeLists.txt
!distclean.cmake
Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# If not, see: https://www.gnu.org/licenses.

# Communicate version number and other CMake build variables to the source code
#set(GLOBAL_MODULE_IN ${SRC}/globals/globals_module.f90.in)
#set(GLOBAL_MODULE_OUT ${SRC}/globals/globals_module.f90)
#CONFIGURE_FILE(${GLOBAL_MODULE_IN} ${GLOBAL_MODULE_OUT})
set(GLOBAL_MODULE_IN ${SRC}/globals/module_globals.f90.in)
set(GLOBAL_MODULE_OUT ${SRC}/globals/module_globals.f90)
CONFIGURE_FILE(${GLOBAL_MODULE_IN} ${GLOBAL_MODULE_OUT})

IF(NOT CMAKE_Fortran_COMPILER_SUPPORTS_F90)
MESSAGE(FATAL_ERROR "Fortran compiler does not support F90")
Expand Down
2 changes: 1 addition & 1 deletion src/globals/module_globals.f90
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module module_globals
implicit none
public

character(len=*),parameter :: CTEMVER = "1.5 DEVELOPMENT"
character(len=*),parameter :: CTEMVER = "2024.6.0"

! Symbolic names for kind types of 4-, 2-, and 1-byte integers:
integer, parameter :: I8B = selected_int_kind(17)
Expand Down
Loading

0 comments on commit c20e5f3

Please sign in to comment.