Hi, why does OB have a double layer of include directories, i.e.
openbabel-2.0/openbabel/*h instead of openbabel/*.h The reason I ask is since cmake does find the obversion.h file, but the logic in FindOpenBabel2.cmake does not work for me: find_path(OPENBABEL2_INCLUDE_DIR openbabel-2.0/openbabel/obconversion.h PATHS ${_obIncDir} ${GNUWIN32_DIR}/include $ENV{OPENBABEL2_INCLUDE_DIR} ) if(OPENBABEL2_INCLUDE_DIR) set(OPENBABEL2_INCLUDE_DIR ${OPENBABEL2_INCLUDE_DIR}/openbabel-2.0) endif(OPENBABEL2_INCLUDE_DIR) what happens is that the find_path call generates a cached variable and the set command does not update the cached variable, so when the .cmake file is executed the addition of the openbabel-2.0 is not visible anymore and the include files can not be found. I made a work-around by soft-linking openbabel-2.0/openbabel to openbabel. Cheers, -- David van der Spoel, Ph.D., Professor of Biology Dept. of Cell & Molec. Biol., Uppsala University. Box 596, 75124 Uppsala, Sweden. Phone: +46184714205. sp...@xray.bmc.uu.se http://folding.bmc.uu.se ------------------------------------------------------------------------------ LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss