This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch hotfix/643-conan2-clion-integration-doc
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/hotfix/643-conan2-clion-integration-doc by this push:
new ee37d46a Add instructions for use Conan 2 with CLion.
ee37d46a is described below
commit ee37d46a705b00a7ea50875a00a63f453331bce8
Author: PengZheng <[email protected]>
AuthorDate: Wed Sep 20 11:15:39 2023 +0800
Add instructions for use Conan 2 with CLion.
---
documents/building/dev_celix_with_clion.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/documents/building/dev_celix_with_clion.md
b/documents/building/dev_celix_with_clion.md
index 45457be4..3b027380 100644
--- a/documents/building/dev_celix_with_clion.md
+++ b/documents/building/dev_celix_with_clion.md
@@ -60,6 +60,17 @@ ctest --verbose
source deactivate_conanrun.sh
```
+### Work with Conan 2
+
+The above is for Conan 1.x.
+Conan 2 has greatly simplified its integration with CLion.
+Issuing the following command will produce a CMakeUserPresets.json at the
project root, which CLion will load automatically to set up CMake profiles.
+Then Celix can be built within the IDE.
+
+```shell
+conan install . -pr:b default -pr:h default -s:h build_type=Debug -o
celix/*:build_all=True -o celix/*:celix_cxx17=True -o
celix/*:enable_testing=True -b missing -o
celix/*:enable_address_sanitizer=True -of cmake-build-debug
+```
+
## Configuring CLion
To ensure that all Conan build dependencies can be found the Run/Debug
configurations of CLion needs te be updated.