FlatBuffers CMake does not contain version information #150
-
FlatBuffers installed via Homebrew does not set the version information in the bundled CMake package configuration file as expected, causing
set(PACKAGE_VERSION "..")
# Check whether the requested PACKAGE_FIND_VERSION is compatible
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif() This happens because FlatBuffers uses There are two ways to fix this:
I'd strongly prefer to do the latter, but is that even allowed? I couldn't find much information on this and could not find any other formula running |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Patching the source independent of upstream is generally discouraged, but I don't think your solution would work anyway, since the formula is built with the release tarball, which has zero Git metadata. Better to submit a patch to upstream, and let them fix it for everyone. |
Beta Was this translation helpful? Give feedback.
Patching the source independent of upstream is generally discouraged, but I don't think your solution would work anyway, since the formula is built with the release tarball, which has zero Git metadata.
Better to submit a patch to upstream, and let them fix it for everyone.