Skip to content

Commit 7e49aa3

Browse files
committed
2 parents cc46303 + b1f76e1 commit 7e49aa3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ to share STL containers between several shared libraries.
44
SharedAllocator interface is similar to `std::allocator` interface
55
so `std::allocator` can be easily replaced by `salloc::shared_allocator` (or by other `salloc::` allocators).
66

7+
### compiling
8+
SharedAllocator is using features of C++11 standard, so you have to use C++11 compatible compiler.
9+
710
### adding shared_allocator to your project with CMake
811
1. Copy files `include/shared_allocator/*.*` to your include directory
912
(for example, `include/third_party/shared_allocator` or just `include/shared_allocator`).
1013
2. Copy files `source/*.*` to your sources directory (for example, `source/shared_allocator`).
11-
3. Include `source/shared_allocator/CMakeLists.txt` into your main CMakeLists.txt: `add_subdirectory(source/shared_allocator)`
14+
3. Include `source/shared_allocator/CMakeLists.txt` (from step 2) into your main CMakeLists.txt: `add_subdirectory(source/shared_allocator)`
1215
4. Add path to shared_allocator header files into additional include directories: `include_directories(include/third_party)`
1316
to make it possible for your compiler to find includes like `#include "shared_allocator/shared_allocator.hpp"`.
1417
5. Add link to shared_allocator library into every project's CMakeLists.txt that would be using `salloc::shared_allocator<T>`

0 commit comments

Comments
 (0)