Fix issue with source tarball builds

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/wsjtx/trunk@8742 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2018-05-31 00:09:28 +00:00
parent 225b54b707
commit 86ee632dc7

View File

@ -64,11 +64,11 @@ elseif (EXISTS "${SOURCE_DIR}/.git")
endif ()
message (STATUS "refspec: ${GIT_REFSPEC} - SHA1: ${GIT_SHA1}")
file (WRITE "${BINARY_DIR}/scs_version.h.txt" "#define SCS_VERSION ${GIT_SHA1}\n")
endif ()
else()
message (STATUS "No SCS found")
file (WRITE "${BINARY_DIR}/scs_version.h.txt" "#define SCS_VERSION\n")
endif ()
endif ()
# copy the file to the final header only if the version changes
# reduces needless rebuilds