Skip to content

Commit 20379c1

Browse files
committed
[skip ci] Update README with actual info about Conan.
1 parent 83a547a commit 20379c1

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

README.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -755,21 +755,16 @@ target_link_libraries(your_target sobjectizer::SharedLib) # or sobjectizer::Stat
755755

756756
### Using via Conan
757757

758-
#### Installing SObjectizer And Adding It To conanfile.txt
759-
760-
To use SObjectizer via Conan it is necessary to do the following steps:
758+
**NOTE.** Since Feb 2021 new versions of SObjectizer are available via [conan-center](https://conan.io/center/) only.
761759

762-
Add the corresponding remote to your conan:
763-
764-
```sh
765-
conan remote add stiffstream https://api.bintray.com/conan/stiffstream/public
766-
```
760+
#### Installing SObjectizer And Adding It To conanfile.txt
767761

768-
Add SObjectizer to `conanfile.txt` of your project:
762+
To use SObjectizer via Conan it is necessary to add SObjectizer to
763+
`conanfile.txt` of your project:
769764

770765
```
771766
[requires]
772-
sobjectizer/5.7.0@stiffstream/stable
767+
sobjectizer/5.7.2.3
773768
```
774769

775770
It also may be necessary to specify `shared` option for SObjectizer. For example, for build SObjectizer as a static library:
@@ -787,16 +782,13 @@ conan install SOME_PATH --build=missing
787782

788783
#### Adding SObjectizer To Your CMakeLists.txt
789784

790-
Please note that SObjectizer should be added to your `CMakeLists.txt` via `find_package` command:
791-
792785
```cmake
793786
...
794787
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
795788
conan_basic_setup()
796789
797-
find_package(sobjectizer CONFIG REQUIRED)
798790
...
799-
target_link_libraries(your_target sobjectizer::SharedLib) # Or sobjectizer::StaticLib
791+
target_link_libraries(your_target ${CONAN_LIBS})
800792
```
801793

802794
# License

0 commit comments

Comments
 (0)