libpmemobj-cpp
libpmemobj-cpp copied to clipboard
pkg_check_modules doesn't set LIBPMEMOBJ++_INCLUDE_DIRS
Using the following results in no data in LIBPMEMOBJ++_INCLUDE_DIRS
pkg_check_modules(LIBPMEMOBJ++ REQUIRED libpmemobj++>=${LIBPMEMOBJ_CPP_REQUIRED_VERSION})
message (STATUS "LIBPMEMOBJ++_INCLUDE_DIRS = ${LIBPMEMOBJ++_INCLUDE_DIRS}")
message (STATUS "LIBPMEMOBJ++_LIBRARIES = ${LIBPMEMOBJ++_LIBRARIES} ")
Environment Information
- libpmemobj-cpp version(s): 1.9
- PMDK (libpmemobj) package version(s): 1.8
- OS(es) version(s): Fedora 32
- kernel version(s): Linux 5.6.16-300.fc32.x86_64
- compiler, libraries, packaging and other related tools version(s): GCC 10.1, CMake 3.17
How often bug is revealed:
Always
Actual behavior:
-- LIBPMEMOBJ++_INCLUDE_DIRS =
-- LIBPMEMOBJ++_LIBRARIES = pmemobj
Expected behavior:
-- LIBPMEMOBJ++_INCLUDE_DIRS = libpmemobj++
-- LIBPMEMOBJ++_LIBRARIES = pmemobj
(or full path to lib)
Details
Workaround -
set (LIBPMEMOBJ++_INCLUDE_DIRS libpmemobj++)
After pkg_check_modules
Additional information about Priority and Help Requested:
Are you willing to submit a pull request with a proposed change? (Yes, No)
Requested priority: (Showstopper, High, Medium, Low) Low