Does it work if you define -DOPENBABEL2_INCLUDE_DIR and -DOPENBABEL2_LIBRARIES directly?
I note that very few of the Find modules that come with CMake actually use this variable. It's usually handled indirectly by pkgconfig via -DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=TRUE. I haven't tested whether this fixes it for you, but I don't think it's a bug at our end, or a feature we will implement. - Noel On 7 June 2017 at 09:22, Davide Olianas <dav...@davideolianas.com> wrote: > Hello, > > the openbabel version shipped with my distribution (ubuntu 16.04) is quite > old; I’d like to link my programs to the most recent one, which I installed > in ~/opt using the option CMAKE_INSTALL_PREFIX=~/opt. > > Sadly, the environment variable CMAKE_PREFIX_PATH doesn’t appear to be used > by FindOpenBabel2.cmake. I copied this module because OpenBabel can’t be > found by default (is this a packaging problem of the distribution? If not, > could it be possible to add FindOpenBabel2.cmake to OpenBabel source such > that package maintainers can add the module?) > > You can clone this repo for a minimal (not) working example. If you have > vagrant installed, just run vagrant up to set up a clean virtual machine. If > you don’t use vagrant, you can look bootstrap.sh for the commands to > reproduce the problem. > > Thanks for any help, > Davide > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss