Skip to content

Commit

Permalink
Get version from git under source tree, regardless of build path (sch…
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller authored Apr 3, 2024
1 parent a230bfd commit 2faea71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(versionfile "${CMAKE_CURRENT_BINARY_DIR}/schism_version.F90")
add_custom_target(
sversion
COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen_version.py ${versionfile}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

set_source_files_properties(${versionfile} PROPERTIES GENERATED TRUE)
Expand Down

0 comments on commit 2faea71

Please sign in to comment.