Do not hard-code Open Babel major version for include directory

This commit is contained in:
Eisuke Kawashima 2019-10-10 18:12:00 +09:00
parent 49f9cfb32b
commit 3f7a07f7e4
No known key found for this signature in database
GPG Key ID: 57D0AFBC8E797696
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ else() # Windows - bin dir = lib dir to load libraries
endif()
endif()
if(NOT DEFINED OB_INCLUDE_DIRS)
set(OB_INCLUDE_DIRS "include/openbabel3")
set(OB_INCLUDE_DIRS "include/openbabel${BABEL_MAJ_VER}")
endif()
set(OB_EXPORTS_FILE "${openbabel_BINARY_DIR}/OpenBabel3_EXPORTS.cmake")
# Ensure a fresh file is made each time CMake is run

View File

@ -2,7 +2,7 @@ prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
libdir=${exec_prefix}/@LIB_INSTALL_DIR@
includedir=${prefix}/include
pkgincludedir=${includedir}/openbabel-2.0
pkgincludedir=${includedir}/openbabel@BABEL_MAJ_VER@
Name: Open Babel library
Description: libopenbabel