Would it work if one of the usages was renamed as follows?
find_path(FIND_OPENBABEL2_INCLUDE_DIR openbabel-2.0/openbabel/obconversion.h
PATHS
${_obIncDir}
${GNUWIN32_DIR}/include
$ENV{OPENBABEL2_INCLUDE_DIR}
)
if(FIND_OPENBABEL2_INCLUDE_DIR)
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/openb