libpmemobj-cpp
libpmemobj-cpp copied to clipboard
Incorrect variables for include directories are used in the build process
Only $(PKG)_INCLUDEDIR and $(PKG)_INCLUDE_DIRS exist, but many CMakeFiles in libpmemobj-cpp use $(PKG)_INCLUDE_DIR.
See https://cmake.org/cmake/help/v3.6/module/FindPkgConfig.html#command:pkg_check_modules
Actually _INCLUDE_DIR can exist, it's dependent on the package. For example curses sets INCLUDE_DIR for backward compatibility (https://cmake.org/cmake/help/latest/module/FindCurses.html).
I would make sure all our variables in CMake are setup properly, before closing this issue.
see also: #788