cpp-lru-cache | Simple reliable LRU cache for c++ based on hashmap | Caching library
kandi X-RAY | cpp-lru-cache Summary
kandi X-RAY | cpp-lru-cache Summary
Simple and reliable LRU (Least Recently Used) cache for c++ based on hashmap and linkedlist. The library is header only, simple test and example are included. It includes standard components and very little own logics that guarantees reliability.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cpp-lru-cache
cpp-lru-cache Key Features
cpp-lru-cache Examples and Code Snippets
Community Discussions
Trending Discussions on cpp-lru-cache
QUESTION
I'm trying to use this lru caching library in C++ in my CMakeProject
. I went ahead and added it as a add_subdirectory
and tried to #include "lrucache.hpp"
as per the example but that didn't work. Any ideas?
ANSWER
Answered 2019-Dec-15 at 23:57It doesn't look like cpp-lru-cache has a well-written CMakeLists.txt. It does not use target based include directories by using target_include_directories
, hence you will not automatically get the include path by linking library.
You will need to add the path to the include directory for cpu-lru-cache in your own project, e.g.:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cpp-lru-cache
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page