Skip to content

Commit

Permalink
Merge pull request #8 from GEOS-ESM/feature/mathomp4/#7-add-new-rcfiles
Browse files Browse the repository at this point in the history
Fixes #7. Add rc files for git and cmake versions
  • Loading branch information
tclune committed Jul 22, 2019
2 parents c0cd635 + 5642c54 commit 85e7e4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMAKE_VERSION.rc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CMake Version Used for Build: @CMAKE_VERSION@
CMake Required Version: @CMAKE_MINIMUM_REQUIRED_VERSION@
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ foreach (g5modulefile g5_modules g5_modules.sh)
)
endforeach ()

foreach (conf_file BASEDIR.rc SITE.rc)
foreach (conf_file BASEDIR.rc SITE.rc CMAKE_VERSION.rc GIT_VERSION.rc)
configure_file(${conf_file}.in ${conf_file} @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${conf_file} DESTINATION etc)
endforeach ()
1 change: 1 addition & 0 deletions GIT_VERSION.rc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Git Version: @GIT_VERSION_STRING@

0 comments on commit 85e7e4d

Please sign in to comment.