New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_fragments is referenced but not defined or used #1615
Comments
See #1612 |
If you have the latest from |
#1612 does not fix the problem. It just hardcodes a value for crystals and molecules are also maintained in git repos. But they don't have this problem with their paths. Wait, I see what's different, I patched them for the debian build with https://salsa.debian.org/debichem-team/avogadrolibs/-/blob/master/debian/patches/qtplugins_insertfragment.patch I'll need to update this patch for fragments. We could perhaps remove this patch if the data dirs could be set with |
I guess the configuration would be more consistent if the install step was set as
instead of
likewise for |
Does it make sense to have a higher-level variable like |
I think that would work. Then I'd only have to set the one variable to point at the |
Avogadro version: (please complete the following information from the About box):
Desktop version: (please complete the following information):
Describe the bug
Avogadrolibs: 1.99.0 has added fragments from https://github.com/openchemistry/fragments processed in avogadro/qtplugins/templatetool/CMakeLists.txt
The CMakeLists.txt pulls the data from the git repo if
${_fragments}
does not exist. But_fragments
is not defined anywhere, and more to the point there is no handling in place if it does exist. This means if it does exists, the install stepwill fail, unless
_fragments
happens to be set to${AvogadroLibs_SOURCE_DIR}/../fragments
.This is a problem for debian builds, for instance, where fragments are kept in
debian/data/fragments
(via git subtree, since by Debian policy data cannot be pulled from the internet at build time). In this case git clone should not be needed (the data has already been cloned and is available locally).To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/openchemistry/fragments /tmp/fragments
mkdir build; cd build
cmake -D_fragments=/tmp/fragments -DUSE_MMTF=OFF -DUSE_LIBMSYM=OFF ..
Expected behavior
Since
_fragment
is referenced inavogadro/qtplugins/templatetool/CMakeLists.txt
, you'd expect it can be used to identify the location of the fragments dir, without required git.Screenshots
The text was updated successfully, but these errors were encountered: