Skip to content

Commit

Permalink
Fixes #7. Add rc files for git and cmake versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 committed Jul 19, 2019
1 parent c0cd635 commit 5642c54
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 5642c54

Please sign in to comment.