Commit f1d6073a authored by Philipp Götze's avatar Philipp Götze
Browse files

🔨 Fixed search for PMDK includes during configuration

parent 4adcc20d
......@@ -6,7 +6,13 @@ set(THIRD_PARTY_DIR "${PROJECT_BINARY_DIR}/_deps")
# Searching for PMDK ======================================================== #
message(STATUS "Searching for PMDK")
pkg_check_modules(PMDK QUIET REQUIRED libpmemobj>=1.5)
find_path(PMDK_INCLUDE_DIR libpmem.h)
pkg_check_modules(PMDK REQUIRED libpmemobj++>=1.5)
set(PMDK_INCLUDE_DIRS ${PMDK_INCLUDE_DIRS} ${PMDK_INCLUDE_DIR})
if(NOT PMDK_INCLUDE_DIRS OR "${PMDK_INCLUDE_DIRS}" STREQUAL "")
message(FATAL_ERROR "ERROR: libpmem include directory not found.")
endif()
message(STATUS " libpmem.h found in ${PMDK_INCLUDE_DIRS}")
mark_as_advanced(PMDK_LIBRARIES PMDK_INCLUDE_DIRS)
# Format ==================================================================== #
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment