diff options
author | Michele Calgaro <[email protected]> | 2024-11-18 22:24:33 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-11-18 22:24:33 +0900 |
commit | 3b0c3b8206964b85bf3716c962d26dd15c4f285f (patch) | |
tree | 2f0973dbf96c2892d19a55b6f846f130e7399a48 /debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake | |
parent | ff287d2f48d4f4253bf84f19bd7fe937b61ede45 (diff) | |
download | extra-dependencies-master.tar.gz extra-dependencies-master.zip |
It is no longer necessary to maintain a customize trinity version.
Upstream version can be used as is.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake')
-rw-r--r-- | debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake b/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake deleted file mode 100644 index 3d6d376b..00000000 --- a/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/cmake/GenerateVersionHeader.cmake +++ /dev/null @@ -1,39 +0,0 @@ -# -# Generate uncrustify_version.h from uncrustify_version.h.in -# -# This script is meant to be executed with `cmake -P` from a custom target, -# and expects the variables `PYTHON_EXECUTABLE`, `SOURCE_DIR`, `INPUT`, -# `OUTPUT` and `UNCRUSTIFY_VERSION` to be set. -# - - -execute_process( - COMMAND ${PYTHON_EXECUTABLE} ${SOURCE_DIR}/scripts/make_version.py - WORKING_DIRECTORY ${SOURCE_DIR} - RESULT_VARIABLE make_version_error - OUTPUT_VARIABLE make_version_output -) - -if (make_version_error) - # It's normal for make_version.py to fail when building from a tarball, so we - # want to avoid anything that looks too much like a scary error. Thus, report - # the error in an innocuous-looking fashion. - # - # If make_version.py is failing unexpectedly and needs to be debugged, - # uncomment the next few lines. - # string(STRIP "${make_version_output}" make_version_output) - # message(STATUS - # "scripts/make_version.py exited with code ${make_version_error}: " - # "${make_version_output}") - - message(STATUS - "Unable to determine version from source tree; " - "fallback version '${UNCRUSTIFY_VERSION}' will be used") - message(STATUS - "(This is normal if you are building from a zip / tarball)") -else() - string(STRIP ${make_version_output} UNCRUSTIFY_VERSION) - message(STATUS "Version: '${UNCRUSTIFY_VERSION}'") -endif() - -configure_file("${INPUT}" "${OUTPUT}" @ONLY) |